From: Felipe Contreras Date: Wed, 30 Sep 2009 14:49:36 +0000 (+0300) Subject: send-email: fix mutt regex for grouped aliases X-Git-Tag: v1.6.5~4^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ffc01f9baddb09a90ad4c5f391344e6e907851c8;p=git.git send-email: fix mutt regex for grouped aliases For example: alias -group friends foo Foo Bar Signed-off-by: Felipe Contreras Acked(-and-tested)-by: Eric Wong Signed-off-by: Jeff King --- 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