* [PATCH] git-send-email: Don't add To: recipients to the Cc: header too
@ 2007-11-20 9:34 Ask Bjørn Hansen
0 siblings, 0 replies; only message in thread
From: Ask Bjørn Hansen @ 2007-11-20 9:34 UTC (permalink / raw)
To: git; +Cc: Ask Bjørn Hansen
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
---
git-send-email.perl | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl
index fd0a4ad..b832d2d 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -557,7 +557,11 @@ sub sanitize_address
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);
--
1.5.3.5.561.g140d
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-20 9:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20 9:34 [PATCH] git-send-email: Don't add To: recipients to the Cc: header too Ask Bjørn Hansen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).