send-email: accept absolute path even on Windows

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Erik Faye-Lund 2009-07-27 21:05:40 +02:00 committed by Johannes Schindelin
parent f9ef98f9d3
commit 6d95a38a36

View file

@ -1050,7 +1050,7 @@ sub send_message {
if ($dry_run) {
# We don't want to send the email.
} elsif ($smtp_server =~ m#^/#) {
} elsif ($smtp_server =~ m#^/# || $smtp_server =~ m#[a-zA-Z]\:#) {
my $pid = open my $sm, '|-';
defined $pid or die $!;
if (!$pid) {