From: Michael Hendricks Date: Thu, 17 May 2007 05:15:16 +0000 (-0600) Subject: git-send-email: allow leading white space on mutt aliases X-Git-Tag: v1.5.1.5~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=504ceab6d24bc19ed5a04b5978c8899fa58dffe1;p=git.git git-send-email: allow leading white space on mutt aliases mutt version 1.5.14 (perhaps earlier versions too) permits alias files to have white space before the 'alias' keyword. Signed-off-by: Michael Hendricks Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 12ced2888..e60d8777f 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -212,7 +212,7 @@ my $aliasfiletype = $repo->config('sendemail.aliasfiletype'); my %parse_alias = ( # multiline formats can be supported in the future mutt => sub { my $fh = shift; while (<$fh>) { - if (/^alias\s+(\S+)\s+(.*)$/) { + if (/^\s*alias\s+(\S+)\s+(.*)$/) { my ($alias, $addr) = ($1, $2); $addr =~ s/#.*$//; # mutt allows # comments # commas delimit multiple addresses