git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] [RFC] send-email: honor --suppress-from --signed-off-cc

From
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date
Jul 10, 2007, 17:02 UTC
Message-ID
<11840869671745-git-send-email-ukleinek@informatik.uni-freiburg.de>
In-Reply-To
<11840869641759-git-send-email-ukleinek@informatik.uni-freiburg.de>
From: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>

--- Not sure, if this is how it should be. Maybe we need another flag?

Best regards Uwe

 git-send-email.perl |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl
index 8b3d450..a03153b 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -641,9 +641,11 @@ foreach my $t (@files) {
 			if (/^(Signed-off-by|Cc): (.*)$/i && $signed_off_cc) {
 				my $c = $2;
 				chomp $c;
-				push @cc, $c;
-				printf("(sob) Adding cc: %s from line '%s'\n",
-					$c, $_) unless $quiet;
+				if (!$suppress_from or $c eq $from) {
+					push @cc, $c;
+					printf("(sob) Adding cc: %s from line '%s'\n",
+						$c, $_) unless $quiet;
+				}
 			}
 		}
 	}
-- 
1.5.3.rc0.823.gdedbf
Previous: Uwe Kleine-KönigNext: Uwe Kleine-König
Message 2 of 7 in “send-email: extend sanitize_address_rfc822 to do rfc2047 quoting”
  1. send-email: extend sanitize_address_rfc822 to do rfc2047 quotingUwe Kleine-König, Jul 10, 2007
  2. [RFC] send-email: honor --suppress-from --signed-off-ccUwe Kleine-König, Jul 10, 2007
  3. Uwe Kleine-KönigJul 11, 2007
  4. Sven VerdoolaegeJul 11, 2007
  5. Uwe Kleine-KönigJul 11, 2007
  6. Sven VerdoolaegeJul 11, 2007
  7. Sven VerdoolaegeJul 11, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.