Skip to content

Commit

Permalink
scripts/get_maintainer.pl: don't deduplicate unnamed addresses ie: ma…
Browse files Browse the repository at this point in the history
…iling 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 <[email protected]>
Cc: Florian Mickler <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JoePerches authored and torvalds committed Oct 26, 2010
1 parent b9e2331 commit fae9920
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/get_maintainer.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use strict;

my $P = $0;
my $V = '0.26-beta5';
my $V = '0.26-beta6';

use Getopt::Long qw(:config no_auto_abbrev);

Expand Down Expand Up @@ -1036,7 +1036,7 @@ sub push_email_address {
push(@email_to, [format_email($name, $address, $email_usename), $role]);
} elsif (!email_inuse($name, $address)) {
push(@email_to, [format_email($name, $address, $email_usename), $role]);
$email_hash_name{lc($name)}++;
$email_hash_name{lc($name)}++ if ($name ne "");
$email_hash_address{lc($address)}++;
}

Expand Down Expand Up @@ -1659,7 +1659,7 @@ sub deduplicate_email {

($name, $address) = parse_email($email);

if ($deduplicate_name_hash{lc($name)}) {
if ($name ne "" && $deduplicate_name_hash{lc($name)}) {
$name = $deduplicate_name_hash{lc($name)}->[0];
$address = $deduplicate_name_hash{lc($name)}->[1];
$matched = 1;
Expand Down

0 comments on commit fae9920

Please sign in to comment.