From: Eric W. Biederman Date: Thu, 21 May 2009 02:45:53 +0000 (-0700) Subject: git-send-email: Handle quotes when parsing .mailrc files X-Git-Tag: v1.6.4-rc0~150 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fe87c92138d91e2002c46b06f8389814436de1cf;p=git.git git-send-email: Handle quotes when parsing .mailrc files It is legal and not uncommon to use quotes in a .mailrc file so you can include a persons fullname as well as their email alias. Handle this by using quotewords instead of split when parsing .mailrc files. Signed-off-by: Eric W. Biederman Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index cccbf4517..e3408d513 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -409,7 +409,7 @@ my %parse_alias = ( mailrc => sub { my $fh = shift; while (<$fh>) { if (/^alias\s+(\S+)\s+(.*)$/) { # spaces delimit multiple addresses - $aliases{$1} = [ split(/\s+/, $2) ]; + $aliases{$1} = [ quotewords('\s+', 0, $2) ]; }}}, pine => sub { my $fh = shift; my $f='\t[^\t]*'; for (my $x = ''; defined($x); $x = $_) {