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

[PATCH] send-email: Clear To: field for every mail

From
VKViresh KUMAR <viresh.kumar@st.com>
Date
Oct 4, 2010, 05:37 UTC
Message-ID
<a9b17bd454e57abb75f6cd2a7da63ec7738f5e7b.1286170305.git.viresh.kumar@st.com>
While sending multiple patches with a single git-send-email command,
To: field is not cleared after every mail. This patch clears To: field
after every patch sent.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Tested-by: Viresh Kumar <viresh.kumar@st.com>
---
 git-send-email.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl
index 1ccfb80..cf17704 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1150,6 +1150,7 @@ foreach my $t (@files) {
 	my $author_encoding;
 	my $has_content_type;
 	my $body_encoding;
+	@to = ();
 	@cc = ();
 	@xh = ();
 	my $input_format = undef;
-- 
1.7.2.3
Next: Stephen Boyd
Message 1 of 9 in “send-email: Clear To: field for every mail”
  1. send-email: Clear To: field for every mailViresh KUMAR, Oct 4, 2010
  2. send-email: Don't leak To: headers between patchesStephen Boyd, Oct 4, 2010
  3. Junio C HamanoOct 4, 2010
  4. Ævar Arnfjörð BjarmasonOct 4, 2010
  5. Ævar Arnfjörð BjarmasonOct 4, 2010
  6. Junio C HamanoOct 4, 2010
  7. Joe PerchesOct 4, 2010
  8. Junio C HamanoOct 4, 2010
  9. viresh kumarOct 4, 2010

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.