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
pgpEBwBBMkHQe.pgp
Description: PGP signature