summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59adeef)
raw | patch | inline | side by side (parent: 59adeef)
author | Ask Bjørn Hansen <ask@develooper.com> | |
Mon, 19 Nov 2007 11:00:26 +0000 (03:00 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Nov 2007 21:16:09 +0000 (13:16 -0800) |
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index 47afc56915c8ea6e27ae34f3f3c9baa9075536a8..990e44bf02f4928392adf283ed4a36c99d31efa6 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
sub send_message
{
my @recipients = unique_email_list(@to);
- @cc = (map { sanitize_address($_) } @cc);
+ @cc = (grep { my $cc = extract_valid_address($_);
+ not grep { $cc eq $_ } @recipients
+ }
+ map { sanitize_address($_) }
+ @cc);
my $to = join (",\n\t", @recipients);
@recipients = unique_email_list(@recipients,@cc,@bcclist);
@recipients = (map { extract_valid_address($_) } @recipients);