mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
Merge branch 'fc/mutt-alias'
* fc/mutt-alias: send-email: fix mutt regex for grouped aliases
This commit is contained in:
commit
e12bfd86c1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue