Re: Problem with send-email

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

 



Jakub Narebski wrote:
Timur Tabi wrote:

Everything works.  However, if I do this:

git-send-email --from timur@xxxxxxxxxxxxx --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@xxxxxxxxxxxxx --to timur@xxxxxxxx --smtp-server remotesmtp.freescale.net patchfile

The error message I get is the same:

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

I do have some news.  This problem goes away if I don't specify the --smtp-server parameter.


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
-
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]