Skip to content

Commit e12bfd8

Browse files
committed
Merge branch 'fc/mutt-alias'
* fc/mutt-alias: send-email: fix mutt regex for grouped aliases
2 parents c2c8656 + ffc01f9 commit e12bfd8

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)