Commit fae99206769b6bbf8a20ab883726b164945771d7
Committed by
Linus Torvalds
1 parent
b9e2331dd1
Exists in
master
and in
39 other branches
scripts/get_maintainer.pl: don't deduplicate unnamed addresses ie: mailing lists
Fix a defect with the first mailing list address being used for each subsequent mailing list. Updated to 0.26-beta6. Signed-off-by: Joe Perches <joe@perches.com> Cc: Florian Mickler <florian@mickler.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
scripts/get_maintainer.pl
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | use strict; |
14 | 14 | |
15 | 15 | my $P = $0; |
16 | -my $V = '0.26-beta5'; | |
16 | +my $V = '0.26-beta6'; | |
17 | 17 | |
18 | 18 | use Getopt::Long qw(:config no_auto_abbrev); |
19 | 19 | |
... | ... | @@ -1036,7 +1036,7 @@ |
1036 | 1036 | push(@email_to, [format_email($name, $address, $email_usename), $role]); |
1037 | 1037 | } elsif (!email_inuse($name, $address)) { |
1038 | 1038 | push(@email_to, [format_email($name, $address, $email_usename), $role]); |
1039 | - $email_hash_name{lc($name)}++; | |
1039 | + $email_hash_name{lc($name)}++ if ($name ne ""); | |
1040 | 1040 | $email_hash_address{lc($address)}++; |
1041 | 1041 | } |
1042 | 1042 | |
... | ... | @@ -1659,7 +1659,7 @@ |
1659 | 1659 | |
1660 | 1660 | ($name, $address) = parse_email($email); |
1661 | 1661 | |
1662 | - if ($deduplicate_name_hash{lc($name)}) { | |
1662 | + if ($name ne "" && $deduplicate_name_hash{lc($name)}) { | |
1663 | 1663 | $name = $deduplicate_name_hash{lc($name)}->[0]; |
1664 | 1664 | $address = $deduplicate_name_hash{lc($name)}->[1]; |
1665 | 1665 | $matched = 1; |