mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
6be0264030
commit
86b898487a
@@ -492,6 +492,10 @@ sub parse_sendmail_alias {
|
|||||||
local $_ = shift;
|
local $_ = shift;
|
||||||
if (/"/) {
|
if (/"/) {
|
||||||
print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
|
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*(.+)$/) {
|
} elsif (/^(\S+?)\s*:\s*(.+)$/) {
|
||||||
my ($alias, $addr) = ($1, $2);
|
my ($alias, $addr) = ($1, $2);
|
||||||
$aliases{$alias} = [ split_addrs($addr) ];
|
$aliases{$alias} = [ split_addrs($addr) ];
|
||||||
|
|||||||
Reference in New Issue
Block a user