summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-11-24 21:24:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-11-24 21:24:49 (GMT)
commitc6caede7fd6bc428b4d2e53f6bb5c1e1a9bcb24c (patch)
tree47c0591c521e0d369b0d284298104c8d8377c954 /git-send-email.perl
parent89ba4e7c7f71712133d1d3137f811b99ea43dd31 (diff)
parent16529f2e5630d3d155e4dff0ebd3c7c5daa882f9 (diff)
downloadgit-c6caede7fd6bc428b4d2e53f6bb5c1e1a9bcb24c.zip
git-c6caede7fd6bc428b4d2e53f6bb5c1e1a9bcb24c.tar.gz
git-c6caede7fd6bc428b4d2e53f6bb5c1e1a9bcb24c.tar.bz2
Merge branch 'maint'
* maint: imap-send: link against libcrypto for HMAC and others git-send-email.perl: Deduplicate "to:" and "cc:" entries with names mingw: do not set errno to 0 on success
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index f68ed5a..6e2d79a 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -960,7 +960,7 @@ sub maildomain {
sub send_message {
my @recipients = unique_email_list(@to);
@cc = (grep { my $cc = extract_valid_address($_);
- not grep { $cc eq $_ } @recipients
+ not grep { $cc eq $_ || $_ =~ /<\Q${cc}\E>$/ } @recipients
}
map { sanitize_address($_) }
@cc);