From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Subject: Problem with send-email Date: Fri, 08 Sep 2006 16:04:38 -0500 Organization: Freescale Message-ID: <4501DAE6.8040905@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-From: git-owner@vger.kernel.org Fri Sep 08 23:29:28 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLnuh-0006jm-2L for gcvg-git@gmane.org; Fri, 08 Sep 2006 23:29:27 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751179AbWIHV3A (ORCPT ); Fri, 8 Sep 2006 17:29:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751174AbWIHV3A (ORCPT ); Fri, 8 Sep 2006 17:29:00 -0400 Received: from de01egw01.freescale.net ([192.88.165.102]:54945 "EHLO de01egw01.freescale.net") by vger.kernel.org with ESMTP id S1751209AbWIHVEj (ORCPT ); Fri, 8 Sep 2006 17:04:39 -0400 Received: from de01smr02.am.mot.com (de01smr02.freescale.net [10.208.0.151]) by de01egw01.freescale.net (8.12.11/de01egw01) with ESMTP id k88MNvgk015745 for ; Fri, 8 Sep 2006 16:23:57 -0600 (MDT) Received: from [10.82.19.119] (ld0169-tx32.am.freescale.net [10.82.19.119]) by de01smr02.am.mot.com (8.13.1/8.13.0) with ESMTP id k88L4cEl027092 for ; Fri, 8 Sep 2006 16:04:38 -0500 (CDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.5) Gecko/20060720 SeaMonkey/1.0.3 To: git@vger.kernel.org Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Does anyone actually use git-send-email? It's been so broken for me for months that I can't help but think that. Problem #1: I don't know Perl, but I think there's something wrong with this code: if (!defined $from) { $from = $author || $committer; print "$from\n"; do { $_ = $term->readline("Who should the emails appear to be from? ", $from); } while (!defined $_); $from = $_; print "Emails will be sent from: ", $from, "\n"; $prompting++; } I don't think the call to readline() is working. Specifically, the last parameter, $from, is being ignored. When I call git-send-email without specifying a --from parameter, this code is executed. But this is what I see: Timur Tabi Who should the emails appear to be from? Emails will be sent from: This happens when I press ENTER at the "Who should the emails appear to be from?" prompt. I'm expecting it to assign the default value, which is displayed right above it. But instead, $from is erased, and so my email doesn't have a From: line. Problem #2: I cannot use send-email to send a patch to anyone but myself. If I do this: git-send-email --from timur@freescale.com --to timur@freescale.com --smtp-server remotesmtp.freescale.net patchfile Everything works. However, if I do this: git-send-email --from timur@freescale.com --to --smtp-server remotesmtp.freescale.net patchfile I get this: (mbox) Adding cc: Timur Tabi from line 'From: Timur Tabi ' (sob) Adding cc: Timur Tabi from line 'Signed-off-by: Timur Tabi ' 5.0.0 ... Unbalanced '<' I think that last line is a response from the SMTP server. My guess is that there's something wrong with this line: print $sm "$header\n$message"; Maybe my SMTP server sees the "From: Timur Tabi " that's at the top of $message and gets confused? -- Timur Tabi Linux Kernel Developer @ Freescale