aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2009-09-30 17:49:36 +0300
committerJeff King <peff@peff.net>2009-10-01 04:18:36 -0400
commitffc01f9baddb09a90ad4c5f391344e6e907851c8 (patch)
tree9f1bdee0fd532486fe1297adfcff1e59016137d8
parent1be224ba6e99f0ab34c998d7fa8023b76a15c8b6 (diff)
downloadgit-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>
-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 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