Skip to content

Commit

Permalink
git-send-email: allow leading white space on mutt aliases
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Hendricks authored and Junio C Hamano committed May 17, 2007
1 parent 0ab564b commit 504ceab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ sub format_2822_time {
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
Expand Down

0 comments on commit 504ceab

Please sign in to comment.