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

Re: Problem with send-email

From
TTTimur Tabi <timur@freescale.com>
Date
Sep 8, 2006, 22:57 UTC
Message-ID
<4501F557.7050103@freescale.com>
In-Reply-To
<edsqjo$gh3$1@sea.gmane.org>
Jakub Narebski wrote:
Show 9 quoted lines
> Timur Tabi wrote:
> 
>> Everything works.  However, if I do this:
>>
>> git-send-email --from timur@freescale.com --to  \
>>    --smtp-server remotesmtp.freescale.net patchfile 
>>
> 
> What do you expect when you specify _empty_ To: header?
Sorry, that was a bad cut-and-paste.  I don't know what happened.  That line is supposed to read:
git-send-email --from timur@freescale.com --to timur@tabi.org --smtp-server remotesmtp.freescale.net patchfile
The error message I get is the same:

(mbox) Adding cc: Timur Tabi <timur@freescale.com> from line 'From: Timur Tabi <timur@freescale.com>' (sob) Adding cc: Timur Tabi <timur@freescale.com> from line 'Signed-off-by: Timur Tabi <timur@freescale.com> ' 5.0.0 <Timur Tabi <timur@freescale.com>... Unbalanced '<'

I do have some news.  This problem goes away if I don't specify the --smtp-server parameter.
Show 5 quoted lines
> 
> I use git-send-email from time to time; I always specify From:, 
> either entering it when prompted, or using --from parameter.
> The fact that it didn't fill default value from committer/author
> core.author+core.email is I guess a bug...
Like I said, I think the bug is in the call to readline().  Like I said, I don't know Perl, but from the documentation I have read, I don't think readline() takes two parameters.
     do {
         $_ = $term->readline("Who should the emails appear to be from? ",
             $from);
     } while (!defined $_);
     $from = $_;
$from does contain the correct value when readline() is called.  The problem is that $_ contains nothing, which causes $from to be erased.
-- 
Timur Tabi
Linux Kernel Developer @ Freescale
Previous: Jakub Narebski
Message 3 of 3 in “Problem with send-email”
  1. Timur TabiSep 8, 2006
  2. Jakub NarebskiSep 8, 2006
  3. Timur TabiSep 8, 2006

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.