summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2015-06-01 14:22:36 -0400
committerJunio C Hamano <gitster@pobox.com>2015-06-01 15:53:19 -0700
commit86b898487a13483a1b6a5dc7f26a1f103fb2574d (patch)
tree44f387b3e4357eaec927a9bcfd39bb437e61cf07 /git-send-email.perl
parent6be02640301a7517c76792f5b0e7c978e6961022 (diff)
downloadgit-86b898487a13483a1b6a5dc7f26a1f103fb2574d.tar.gz
send-email: further warn about unsupported sendmail aliases featureses/send-email-sendmail-alias
The sendmail aliases parser diagnoses unsupported features and unrecognized lines. For completeness, also warn about unsupported redirection to "/path/name" and "|command", as well as ":include:". Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index eb1d678fb0..ae9f8698c5 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -492,6 +492,10 @@ sub parse_sendmail_alias {
local $_ = shift;
if (/"/) {
print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
+ } elsif (/:include:/) {
+ print STDERR "warning: `:include:` not supported: $_\n";
+ } elsif (/[\/|]/) {
+ print STDERR "warning: `/file` or `|pipe` redirection not supported: $_\n";
} elsif (/^(\S+?)\s*:\s*(.+)$/) {
my ($alias, $addr) = ($1, $2);
$aliases{$alias} = [ split_addrs($addr) ];