summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-05-20 19:45:53 -0700
committerJunio C Hamano <gitster@pobox.com>2009-05-21 07:08:58 -0700
commitfe87c92138d91e2002c46b06f8389814436de1cf (patch)
tree4949c124606f58890af39d905de08ac1a92bf751 /git-send-email.perl
parent065b0702f748b50e69d67609ace2632ce04b79a1 (diff)
downloadgit-fe87c92138d91e2002c46b06f8389814436de1cf.tar.gz
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 <ebiederm@xmission.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index cccbf4517a..e3408d513f 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 = $_) {