Re: Problem with send-email
- From
- Timur 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