git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Don't add To: recipients to the Cc: header
@ 2007-11-19 11:00 Ask Bjørn Hansen
  2007-11-19 11:05 ` Ask Bjørn Hansen
  2007-11-20  7:52 ` Junio C Hamano
  0 siblings, 2 replies; 14+ messages in thread
From: Ask Bjørn Hansen @ 2007-11-19 11:00 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 65620ab..530b456 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -557,8 +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] 14+ messages in thread

end of thread, other threads:[~2007-11-26 18:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-19 11:00 [PATCH] Don't add To: recipients to the Cc: header Ask Bjørn Hansen
2007-11-19 11:05 ` Ask Bjørn Hansen
2007-11-20  7:52 ` Junio C Hamano
2007-11-20  9:36   ` Ask Bjørn Hansen
2007-11-20 19:04     ` Junio C Hamano
2007-11-20 19:18       ` Sergei Organov
2007-11-20 20:21         ` Junio C Hamano
2007-11-23 17:53           ` Sergei Organov
2007-11-23 19:48             ` Junio C Hamano
2007-11-23 20:18               ` Sergei Organov
2007-11-23 23:54                 ` Junio C Hamano
2007-11-26 13:48                   ` Sergei Organov
2007-11-26 16:53                     ` Junio C Hamano
2007-11-26 18:29                       ` Sergei Organov

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).