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

Re: [Bug] git-email: sendemail.bcc in config file overrides command line option "--bcc"

From
Jeff King <peff@peff.net>
Date
May 9, 2014, 15:45 UTC
Message-ID
<20140509154509.GE18197@sigill.intra.peff.net>
In-Reply-To
<20140509081331.GC3145@adam-laptop>
On Fri, May 09, 2014 at 04:13:31PM +0800, Adam Lee wrote:
Show 12 quoted lines
> BugLink: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747068
> 
> "--bcc" should have higher priority than sendemail.bcc.
> 
> > --bcc=<address>
> >     Specify a "Bcc:" value for each email. Default is the value of sendemail.bcc.
> >
> >     The --bcc option must be repeated for each user you want on the bcc list.
> 
> Reproducing steps:
> 1, set sendemail.bcc in .gitconfig.
> 2, git send-email --bcc with another address.
Hrm, I cannot reproduce at all here:
  $ git config sendemail.bcc config-bcc@example.com
  $ git send-email --dry-run --to=to@example.com -1 origin
  (mbox) Adding cc: Junio C Hamano <gitster@pobox.com> from line 'From: Junio C Hamano <gitster@pobox.com>'
  Dry-OK. Log says:
  Sendmail: /usr/sbin/sendmail -i to@example.com gitster@pobox.com config-bcc@example.com
  > [...]
OK, so our configured bcc works. Now let's override it:
  $ git send-email --dry-run --to=to@example.com \
      --bcc=cmdline-bcc@example.com -1 origin
  (mbox) Adding cc: Junio C Hamano <gitster@pobox.com> from line 'From: Junio C Hamano <gitster@pobox.com>'
  Dry-OK. Log says:
  Sendmail: /usr/sbin/sendmail -i to@example.com gitster@pobox.com cmdline-bcc@example.com

That looks like it's working as expected. Can you show us similar commands that demonstrate the failure?

-Peff
Previous: Adam LeeNext: Adam Lee
Message 2 of 3 in “[Bug] git-email: sendemail.bcc in config file overrides command line option "--bcc"”
  1. Adam LeeMay 9, 2014
  2. Jeff KingMay 9, 2014
  3. [Closed] git-email: sendemail.bcc in config file overrides command line option "--bcc"Adam Lee, May 9, 2014

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.