Skip to content

Commit ffc01f9

Browse files
Felipe Contreraspeff
authored andcommitted
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>
1 parent 1be224b commit ffc01f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)