Skip to content

Commit

Permalink
Merge branch 'fc/mutt-alias'
Browse files Browse the repository at this point in the history
* fc/mutt-alias:
  send-email: fix mutt regex for grouped aliases
  • Loading branch information
gitster committed Oct 9, 2009
2 parents c2c8656 + ffc01f9 commit e12bfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Expand Up @@ -401,7 +401,7 @@ sub split_addrs {
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
Expand Down

0 comments on commit e12bfd8

Please sign in to comment.