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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 09, 2014 at 11:45:09AM -0400, Jeff King wrote:
> On Fri, May 09, 2014 at 04:13:31PM +0800, Adam Lee wrote:
> 
> > 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@xxxxxxxxxxx
>   $ git send-email --dry-run --to=to@xxxxxxxxxxx -1 origin
>   (mbox) Adding cc: Junio C Hamano <gitster@xxxxxxxxx> from line 'From: Junio C Hamano <gitster@xxxxxxxxx>'
>   Dry-OK. Log says:
>   Sendmail: /usr/sbin/sendmail -i to@xxxxxxxxxxx gitster@xxxxxxxxx config-bcc@xxxxxxxxxxx
>   > [...]
> 
> OK, so our configured bcc works. Now let's override it:
> 
>   $ git send-email --dry-run --to=to@xxxxxxxxxxx \
>       --bcc=cmdline-bcc@xxxxxxxxxxx -1 origin
>   (mbox) Adding cc: Junio C Hamano <gitster@xxxxxxxxx> from line 'From: Junio C Hamano <gitster@xxxxxxxxx>'
>   Dry-OK. Log says:
>   Sendmail: /usr/sbin/sendmail -i to@xxxxxxxxxxx gitster@xxxxxxxxx cmdline-bcc@xxxxxxxxxxx
> 
> 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.

-- 
Adam Lee
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]