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

Re: problem when using --cc-cmd

From
Joe Perches <joe@perches.com>
Date
Apr 20, 2011, 19:48 UTC
Message-ID
<1303328900.24766.29.camel@Joe-Laptop>
In-Reply-To
<BANLkTinfbF3xyfrdgfmgHQF7RHCHk8ardw@mail.gmail.com>
On Wed, 2011-04-20 at 12:45 -0300, Thiago Farina wrote:
Show 17 quoted lines
> On Wed, Apr 20, 2011 at 12:03 AM, Joe Perches <joe@perches.com> wrote:
> > On Tue, 2011-04-19 at 16:52 -0500, Jonathan Nieder wrote:
> >> Thiago Farina wrote:
> >> > when I run:
> >> > $ git send-email --to linux-kernel@vger.kernel.org --cc-cmd
> >> > scripts/get_maintainer.pl foo
> >> > I'm getting some lines like:
> >> > Use of uninitialized value $cc in string eq at
> >> > /home/tfarina/libexec/git-core/git-send-email line 964.
> >> Yes, sounds like a bug.  Cc-ing some send-email people for tips.
> > I haven't seen this.
> > What versions of ./scripts/get_maintainer.pl and git are
> > you using?
> $ scripts/get_maintainer.pl --version
> scripts/get_maintainer.pl 0.26
> $ git version
> git version 1.7.5.rc2.5.g60e19

To get this to work properly, the output of cc-cmd (scripts/get_maintainer.pl) must be valid email addresses.

The git send-email --help for cc-cmd says:
       --cc-cmd=<command>
           Specify a command to execute once per patch file which should
           generate patch file specific "Cc:" entries. Output of this command
           must be single email address per line. Default is the value of
           sendemail.cccmd configuration value.

You'll need to add "--norolestats" to the cc-cmd if you use scripts/get_maintainer.pl.

$ git send-email --to linux-kernel@vger.kernel.org \
	--cc-cmd "scripts/get_maintainer.pl --norolestats" foo

I suppose you could call it a defect that the output of cc-cmd isn't screened for invalid email addresses but I think it's not really a problem.

Previous: Thiago FarinaNext: Joe Perches
Message 5 of 10 in “problem when using --cc-cmd”
  1. Thiago FarinaApr 17, 2011
  2. Jonathan NiederApr 19, 2011
  3. Joe PerchesApr 20, 2011
  4. Thiago FarinaApr 20, 2011
  5. Joe PerchesApr 20, 2011
  6. git-send-email: Validate recipient_cmd (to-cmd, cc-cmd) addressesJoe Perches, Apr 20, 2011
  7. Ævar Arnfjörð BjarmasonApr 20, 2011
  8. Joe PerchesApr 20, 2011
  9. Ævar Arnfjörð BjarmasonApr 20, 2011
  10. Joe PerchesApr 20, 2011

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.