Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 03d14ef

Browse files
bert Dvornikdscho
authored andcommitted
send-email: handle Windows paths for display just like we do for processing
In git-send-email.perl, here are two checks to determine if $smtp_server is an absolute path (so it'll be treated as a mailer) or not (so it'll be treated as a hostname). The one that handles actual mail processing has been taught to recognize Windows pathnames by commit 33b2e81. The other check is just to tell the user what happened, so it's far less important, but the current state is that we will still claim to the user that c:/foo/bar is a server. =) This makes the second check consistent with the first. Signed-off-by: bert Dvornik <[email protected]>
1 parent e1bdbf2 commit 03d14ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ sub send_message {
12711271
printf (($dry_run ? "Dry-" : "")."Sent %s\n", $subject);
12721272
} else {
12731273
print (($dry_run ? "Dry-" : "")."OK. Log says:\n");
1274-
if ($smtp_server !~ m#^/#) {
1274+
if ($smtp_server !~ m#^/# && $smtp_server !~ m#[a-zA-Z]:#) {
12751275
print "Server: $smtp_server\n";
12761276
print "MAIL FROM:<$raw_from>\n";
12771277
foreach my $entry (@recipients) {

0 commit comments

Comments
 (0)