{"thread":{"id":"8190","subject":"[PATCH] git-send-email: allow leading white space on mutt aliases","startedAt":"2007-05-17T05:15:16Z","lastAt":"2007-05-17T05:15:16Z","messageCount":1,"participants":["Michael Hendricks"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"42376","messageId":"1179378916698-git-send-email-michael@ndrix.org","threadId":"8190","inReplyTo":null,"subject":"[PATCH] git-send-email: allow leading white space on mutt aliases","fromName":"Michael Hendricks","fromEmail":"michael@ndrix.org","sentAt":"2007-05-17T05:15:16Z","receivedAt":"2007-05-17T05:15:16Z","isPatch":true,"sender":{"key":"michael@ndrix.org","avatar":"https://gravatar.com/avatar/315311e6daa79f24e5648f9534420c24ec48eada42efd4110f1d17167ff44fa8?d=mp&s=160"},"body":"mutt version 1.5.14 (perhaps earlier versions too) permits alias files to have\nwhite space before the 'alias' keyword.\n\nSigned-off-by: Michael Hendricks <michael@ndrix.org>\n---\n git-send-email.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex 404095f..eb876f8 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -212,7 +212,7 @@ my $aliasfiletype = $repo->config('sendemail.aliasfiletype');\n my %parse_alias = (\n \t# multiline formats can be supported in the future\n \tmutt => sub { my $fh = shift; while (<$fh>) {\n-\t\tif (/^alias\\s+(\\S+)\\s+(.*)$/) {\n+\t\tif (/^\\s*alias\\s+(\\S+)\\s+(.*)$/) {\n \t\t\tmy ($alias, $addr) = ($1, $2);\n \t\t\t$addr =~ s/#.*$//; # mutt allows # comments\n \t\t\t # commas delimit multiple addresses\n-- \n1.5.2.rc3.39.gaf9b-dirty\n"}]}