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

git-send-email --suppress-from option doesn't work.

From
TTTimur Tabi <timur@freescale.com>
Date
Jan 18, 2007, 21:07 UTC
Message-ID
<45AFE18C.2020303@freescale.com>
The --suppress-from option doesn't work for me because the comparison is too strict.
Here's an example usage of git-send-email:

git-send-email --suppress-from --from timur@freescale.com --to timur@tabi.org --smtp-server remotesmtp.freescale.net 0001-Add-support-for-the-MPC8349E-mITX-GP.txt

I need to specify the --from option, because otherwise git-send-email will prompt me for a From address, and I don't want it to prompt me for anything.

The problem is that the patchfile contains this line:
From: Timur Tabi <timur@freescale.com>

That means that the patchfile contains the string "Timur Tabi <timur@freescale.com>", but the --from specifies the string "timur@freescale.com". The code which checks the suppress-from option is here:

                         } elsif (/^(Cc|From):\s+(.*)$/) {
                                 if ($2 eq $from) {
                                         next if ($suppress_from);
                                 }

I don't know Perl, but I'm guess the The "$2 eq $from" is a strict comparison that fails in my case.

Some of you might say at this point, "Why don't you just specify --from "Timur Tabi <timur@freescale.com>"? I tried that, and it still doesn't work.

Basically, what I want is to prevent git-send-email from CC'ing me on my own patches. No matter what I do, I can't prevent it from adding "Cc: Timur Tabi <timur@freescale.com>" to the email header.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale
Next: Andreas Ericsson
Message 1 of 3 in “git-send-email --suppress-from option doesn't work.”
  1. Timur TabiJan 18, 2007
  2. Andreas EricssonJan 19, 2007
  3. Timur TabiJan 25, 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.