Skip to content

Commit ffc01f9

Browse files
felipecpeff
authored andcommitted
send-email: fix mutt regex for grouped aliases
For example: alias -group friends foo Foo Bar <[email protected]> Signed-off-by: Felipe Contreras <[email protected]> Acked(-and-tested)-by: Eric Wong <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 1be224b commit ffc01f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ sub split_addrs {
401401
my %parse_alias = (
402402
# multiline formats can be supported in the future
403403
mutt => sub { my $fh = shift; while (<$fh>) {
404-
if (/^\s*alias\s+(\S+)\s+(.*)$/) {
404+
if (/^\s*alias\s+(?:-group\s+\S+\s+)*(\S+)\s+(.*)$/) {
405405
my ($alias, $addr) = ($1, $2);
406406
$addr =~ s/#.*$//; # mutt allows # comments
407407
# commas delimit multiple addresses

0 commit comments

Comments
 (0)