Skip to contentSkip to conversation

git-email: sendemail.bcc in config file overrides command line option "--bcc"

Bug Adam Lee 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore

Adam Lee

author
#0 lore raw

"--bcc" should have higher priority than sendemail.bcc.

Quoted 4 lines

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

Signature · 1 line
Adam Lee
#1 lore raw
Quoted 4 lines · Adam Lee

"--bcc" should have higher priority than sendemail.bcc.

Quoted 8 lines
Quoted 4 lines

--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 [email protected]
  $ git send-email --dry-run [email protected] -1 origin
  (mbox) Adding cc: Junio C Hamano <[email protected]> from line 'From: Junio C Hamano <[email protected]>'
  Dry-OK. Log says:
  Sendmail: /usr/sbin/sendmail -i [email protected] [email protected] [email protected]
Quoted 1 line

[...]

OK, so our configured bcc works. Now let's override it:

  $ git send-email --dry-run [email protected] \
      [email protected] -1 origin
  (mbox) Adding cc: Junio C Hamano <[email protected]> from line 'From: Junio C Hamano <[email protected]>'
  Dry-OK. Log says:
  Sendmail: /usr/sbin/sendmail -i [email protected] [email protected] [email protected]

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

-Peff

author
#2 lore raw
Quoted 32 lines · Jeff King
Quoted 4 lines · Adam Lee

"--bcc" should have higher priority than sendemail.bcc.

Quoted 8 lines
Quoted 4 lines

--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 [email protected]
  $ git send-email --dry-run [email protected] -1 origin
  (mbox) Adding cc: Junio C Hamano <[email protected]> from line 'From: Junio C Hamano <[email protected]>'
  Dry-OK. Log says:
  Sendmail: /usr/sbin/sendmail -i [email protected] [email protected] [email protected]
Quoted 1 line

[...]

OK, so our configured bcc works. Now let's override it:

  $ git send-email --dry-run [email protected] \
      [email protected] -1 origin
  (mbox) Adding cc: Junio C Hamano <[email protected]> from line 'From: Junio C Hamano <[email protected]>'
  Dry-OK. Log says:
  Sendmail: /usr/sbin/sendmail -i [email protected] [email protected] [email protected]
Quoted 4 lines

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

-Peff

I can't reproduce it now, there might be something wrong in my command lines, let's close it first. Thanks, Jeff.

Signature · 1 line
Adam Lee