send-email: further warn about unsupported sendmail aliases features

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>

Eric Sunshine committed Jun 1, 2015 at 14:22 UTC 86b898487a13483a1b6a5dc7f26a1f103fb2574d
1 file changed +4
git-send-email.perl
+4
@@ -492,6 +492,10 @@ sub parse_sendmail_alias {
492 local $_ = shift;
493 if (/"/) {
494 print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
495 + } elsif (/:include:/) {
496 + print STDERR "warning: `:include:` not supported: $_\n";
497 + } elsif (/[\/|]/) {
498 + print STDERR "warning: `/file` or `|pipe` redirection not supported: $_\n";
499 } elsif (/^(\S+?)\s*:\s*(.+)$/) {
500 my ($alias, $addr) = ($1, $2);
501 $aliases{$alias} = [ split_addrs($addr) ];