{"thread":{"id":"36620","subject":"[Bug] git-email: sendemail.bcc in config file overrides command line option \"--bcc\"","startedAt":"2014-05-09T08:13:31Z","lastAt":"2014-05-09T16:26:08Z","messageCount":3,"participants":["Adam Lee","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"241116","messageId":"20140509081331.GC3145@adam-laptop","threadId":"36620","inReplyTo":null,"subject":"[Bug] git-email: sendemail.bcc in config file overrides command line option \"--bcc\"","fromName":"Adam Lee","fromEmail":"adam.lee@canonical.com","sentAt":"2014-05-09T08:13:31Z","receivedAt":"2014-05-09T08:13:31Z","isPatch":false,"sender":{"key":"adam.lee@canonical.com","avatar":null},"body":"BugLink: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747068\n\n\"--bcc\" should have higher priority than sendemail.bcc.\n\n> --bcc=<address>\n>     Specify a \"Bcc:\" value for each email. Default is the value of sendemail.bcc.\n>\n>     The --bcc option must be repeated for each user you want on the bcc list.\n\nReproducing steps:\n1, set sendemail.bcc in .gitconfig.\n2, git send-email --bcc with another address.\n\n-- \nAdam Lee\n"},{"id":"241162","messageId":"20140509154509.GE18197@sigill.intra.peff.net","threadId":"36620","inReplyTo":"20140509081331.GC3145@adam-laptop","subject":"Re: [Bug] git-email: sendemail.bcc in config file overrides command line option \"--bcc\"","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2014-05-09T15:45:09Z","receivedAt":"2014-05-09T15:45:09Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, May 09, 2014 at 04:13:31PM +0800, Adam Lee wrote:\n\n> BugLink: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747068\n> \n> \"--bcc\" should have higher priority than sendemail.bcc.\n> \n> > --bcc=<address>\n> >     Specify a \"Bcc:\" value for each email. Default is the value of sendemail.bcc.\n> >\n> >     The --bcc option must be repeated for each user you want on the bcc list.\n> \n> Reproducing steps:\n> 1, set sendemail.bcc in .gitconfig.\n> 2, git send-email --bcc with another address.\n\nHrm, I cannot reproduce at all here:\n\n  $ git config sendemail.bcc config-bcc@example.com\n  $ git send-email --dry-run --to=to@example.com -1 origin\n  (mbox) Adding cc: Junio C Hamano <gitster@pobox.com> from line 'From: Junio C Hamano <gitster@pobox.com>'\n  Dry-OK. Log says:\n  Sendmail: /usr/sbin/sendmail -i to@example.com gitster@pobox.com config-bcc@example.com\n  > [...]\n\nOK, so our configured bcc works. Now let's override it:\n\n  $ git send-email --dry-run --to=to@example.com \\\n      --bcc=cmdline-bcc@example.com -1 origin\n  (mbox) Adding cc: Junio C Hamano <gitster@pobox.com> from line 'From: Junio C Hamano <gitster@pobox.com>'\n  Dry-OK. Log says:\n  Sendmail: /usr/sbin/sendmail -i to@example.com gitster@pobox.com cmdline-bcc@example.com\n\nThat looks like it's working as expected. Can you show us similar\ncommands that demonstrate the failure?\n\n-Peff\n"},{"id":"241169","messageId":"20140509162608.GA25057@adam-laptop","threadId":"36620","inReplyTo":"20140509154509.GE18197@sigill.intra.peff.net","subject":"[Closed] git-email: sendemail.bcc in config file overrides command line option \"--bcc\"","fromName":"Adam Lee","fromEmail":"adam.lee@canonical.com","sentAt":"2014-05-09T16:26:08Z","receivedAt":"2014-05-09T16:26:08Z","isPatch":false,"sender":{"key":"adam.lee@canonical.com","avatar":null},"body":"On Fri, May 09, 2014 at 11:45:09AM -0400, Jeff King wrote:\n> On Fri, May 09, 2014 at 04:13:31PM +0800, Adam Lee wrote:\n> \n> > BugLink: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747068\n> > \n> > \"--bcc\" should have higher priority than sendemail.bcc.\n> > \n> > > --bcc=<address>\n> > >     Specify a \"Bcc:\" value for each email. Default is the value of sendemail.bcc.\n> > >\n> > >     The --bcc option must be repeated for each user you want on the bcc list.\n> > \n> > Reproducing steps:\n> > 1, set sendemail.bcc in .gitconfig.\n> > 2, git send-email --bcc with another address.\n> \n> Hrm, I cannot reproduce at all here:\n> \n>   $ git config sendemail.bcc config-bcc@example.com\n>   $ git send-email --dry-run --to=to@example.com -1 origin\n>   (mbox) Adding cc: Junio C Hamano <gitster@pobox.com> from line 'From: Junio C Hamano <gitster@pobox.com>'\n>   Dry-OK. Log says:\n>   Sendmail: /usr/sbin/sendmail -i to@example.com gitster@pobox.com config-bcc@example.com\n>   > [...]\n> \n> OK, so our configured bcc works. Now let's override it:\n> \n>   $ git send-email --dry-run --to=to@example.com \\\n>       --bcc=cmdline-bcc@example.com -1 origin\n>   (mbox) Adding cc: Junio C Hamano <gitster@pobox.com> from line 'From: Junio C Hamano <gitster@pobox.com>'\n>   Dry-OK. Log says:\n>   Sendmail: /usr/sbin/sendmail -i to@example.com gitster@pobox.com cmdline-bcc@example.com\n> \n> That looks like it's working as expected. Can you show us similar\n> commands that demonstrate the failure?\n> \n> -Peff\n\nI can't reproduce it now, there might be something wrong in my command\nlines, let's close it first. Thanks, Jeff.\n\n-- \nAdam Lee\n"}]}