Commits

Anonymous committed e12bfd8 Merge

Merge branch 'fc/mutt-alias'

* fc/mutt-alias:
send-email: fix mutt regex for grouped aliases

  • Participants
  • Parent commits c2c8656, ffc01f9

Comments (0)

Files changed (1)

git-send-email.perl

 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