Signed-off-by: Eric Wong <normalperson@xxxxxxxx> --- git-send-email.perl | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) 0e5a33f56f62e527b74b2afbd93a1cca812f97af diff --git a/git-send-email.perl b/git-send-email.perl index d27a7a5..379e0c4 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -507,8 +507,16 @@ sub unique_email_list(@) { my @emails; foreach my $entry (@_) { - my $clean = extract_valid_address($entry); - next if $seen{$clean}++; + if (my $clean = extract_valid_address($entry)) { + $seen{$clean} ||= 0; + next if $seen{$clean}++; + } else { + # it could still be a local email address without '@', + # which neither Email::Valid or our own small regex says + # is valid... + $seen{$entry} ||= 0; + next if $seen{$entry}++; + } push @emails, $entry; } return @emails; -- 1.3.2.g0e5a - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html