From ffc01f9baddb09a90ad4c5f391344e6e907851c8 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Wed, 30 Sep 2009 17:49:36 +0300 Subject: [PATCH] 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 --- git-send-email.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2