mirror of
https://github.com/git/git.git
synced 2026-02-04 23:16:38 +00:00
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 33b2e81f.
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 <dvornik+git@gmail.com>
This commit is contained in:
committed by
Stepan Kasal
parent
b4a38b99bc
commit
9dcdec4c1d
@@ -1271,7 +1271,7 @@ X-Mailer: git-send-email $gitversion
|
||||
printf (($dry_run ? "Dry-" : "")."Sent %s\n", $subject);
|
||||
} else {
|
||||
print (($dry_run ? "Dry-" : "")."OK. Log says:\n");
|
||||
if ($smtp_server !~ m#^/#) {
|
||||
if ($smtp_server !~ m#^/# && $smtp_server !~ m#[a-zA-Z]:#) {
|
||||
print "Server: $smtp_server\n";
|
||||
print "MAIL FROM:<$raw_from>\n";
|
||||
foreach my $entry (@recipients) {
|
||||
|
||||
Reference in New Issue
Block a user