diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2009-09-30 17:49:36 +0300 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2009-10-01 04:18:36 -0400 |
commit | ffc01f9baddb09a90ad4c5f391344e6e907851c8 (patch) | |
tree | 9f1bdee0fd532486fe1297adfcff1e59016137d8 /git-send-email.perl | |
parent | 1be224ba6e99f0ab34c998d7fa8023b76a15c8b6 (diff) | |
download | git-ffc01f9baddb09a90ad4c5f391344e6e907851c8.tar.gz git-ffc01f9baddb09a90ad4c5f391344e6e907851c8.tar.xz |
send-email: fix mutt regex for grouped aliases
For example:
alias -group friends foo Foo Bar <foo@bar.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Acked(-and-tested)-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index dd821f70c..f5ba4e769 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -401,7 +401,7 @@ my %aliases; my %parse_alias = ( # multiline formats can be supported in the future mutt => sub { my $fh = shift; while (<$fh>) { - if (/^\s*alias\s+(\S+)\s+(.*)$/) { + if (/^\s*alias\s+(?:-group\s+\S+\s+)*(\S+)\s+(.*)$/) { my ($alias, $addr) = ($1, $2); $addr =~ s/#.*$//; # mutt allows # comments # commas delimit multiple addresses |