Re: [Mutt] #3015: Segmentation Fault on redirection operator
#3015: Segmentation Fault on redirection operator
Changes (by pdmef):
* keywords: segmentation fault => segmentation fault, smtp
* milestone: => 1.6
> The bug has been traced to line 232,233 of smtp.c in smtp_send function
> ret = snprintf (buf, sizeof (buf), "MAIL FROM:<%s>",
> EnvFrom ? EnvFrom->mailbox : from->mailbox);
> It seems that from or from->mailbox may not be defined in all cases
So the question is what the SMTP code should use as fallback (the sendmail
seems to omit the '-f addr' part in that case)...
Use username (or 'nobody' if user can't be determined) as mailbox and
(or 'localhost' if hostname can't be determined) as domain part?
Since the sendmail-calling code explicetely tests for 'from' being exactly
I guess it's an invalid assumption that a message always has a sender
I'd be interested as to when this happens (and why) since mutt should IMHO
some sender for any outgoing message...
Ticket URL: <http://dev.mutt.org/trac/ticket/3015#comment:2>