Re: Segmentation fault from mutt-1.5.17 with SMTP
- To: mutt-dev@xxxxxxxx
- Subject: Re: Segmentation fault from mutt-1.5.17 with SMTP
- From: Kyle Wheeler <kyle-mutt-dev@xxxxxxxxxxxxxx>
- Date: Mon, 10 Nov 2008 08:53:45 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=AomnmPJUOFNYojH0rgmtkFLtcRg=; b=K8oC GTK1xoZgSZYKQi32jwluXOPNn0zV403BlGAWfPCUuzjVx1dXm7MiUdAwXjM238NK juUkSvMNsyw5uavclxBXQ12eSNJlp+Pz0MJNY55M1wACqodnQRTsj6CBVW1E4ONv wvHjckwAC7qTRuzlUL18NpS1tfp0gBHmGscwLXw=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=GVKYy2wxwvnNaN5vvl53Mq73pt4WsqbhWudaD50+/iTywbuz/046Hmk2npQ0BDBYVICSN09H+CxRBePuepmQZ2XAKlNwrUAtswjDekwNyuEON7IaaK2B5WQaZcaXvWt9rS5teNcv2E1kkkO2e/hEAkFB+jJUU6UcdxAob+UPzdw=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20081110081517.GA21645@xxxxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-dev@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-dev"
- Mail-followup-to: mutt-dev@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20081110081517.GA21645@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-dev@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-10-30)
On Monday, November 10 at 12:15 AM, quoth Gary Johnson:
$ echo test | mutt -s test garyjohn
Hmmm, okay, so, you're not *specifying* a return address. I suppose
the question is: what should mutt be doing in this case?
Have you set the environment variable 'EMAIL'? I'm guessing not. I'm
also guessing that you don't have a muttrc that sets $from to anything
either. I think sendmail probably defaults to $USER @ $HOSTNAME, and I
suppose mutt could do that too. But in any case you should be able to
work around this by providing mutt with some more information.
In the spirit of "mutt should *never* crash, no matter what", we can
easily make mutt default to a null return address here:
--- smtp.old 2008-11-10 08:41:11.000000000 -0600
+++ smtp.c 2008-11-10 08:51:02.000000000 -0600
@@ -243,7 +243,8 @@ mutt_smtp_send (const ADDRESS* from, con
/* send the sender's address */
ret = snprintf (buf, sizeof (buf), "MAIL FROM:<%s>",
- EnvFrom ? EnvFrom->mailbox : from->mailbox);
+ EnvFrom ? EnvFrom->mailbox :
+ (from ? from->mailbox : ""));
if (eightbit && mutt_bit_isset (Capabilities, EIGHTBITMIME))
{
safe_strncat (buf, sizeof (buf), " BODY=8BITMIME", 15);
~Kyle
--
Arguing with an engineer is like wrestling with a pig in mud, after a
while you realize the pig is enjoying it.
-- Unknown
Attachment:
pgpRxOofmQaX7.pgp
Description: PGP signature