@matheusbsbs / matheus-bagliano / commits / 504ceab6d2
Fork 0

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 <michael@ndrix.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Michael Hendricks committed May 16, 2007 at 23:15 UTC 504ceab6d24bc19ed5a04b5978c8899fa58dffe1
1 file changed +1 -1
git-send-email.perl
+1 -1
@@ -212,7 +212,7 @@ my $aliasfiletype = $repo->config('sendemail.aliasfiletype');
212 my %parse_alias = (
213 # multiline formats can be supported in the future
214 mutt => sub { my $fh = shift; while (<$fh>) {
215 - if (/^alias\s+(\S+)\s+(.*)$/) {
215 + if (/^\s*alias\s+(\S+)\s+(.*)$/) {
216 my ($alias, $addr) = ($1, $2);
217 $addr =~ s/#.*$//; # mutt allows # comments
218 # commas delimit multiple addresses