#3015: Segmentation Fault on redirection operator Comment (by P V Mathew):
{{{ Mutt wrote: > #3015: Segmentation Fault on redirection operator > > Changes (by pdmef): > > * keywords: segmentation fault => segmentation fault, smtp > * milestone: => 1.6 > > Comment: > > > 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 > code > seems to omit the '-f addr' part in that case)... > > Use username (or 'nobody' if user can't be determined) as mailbox and > hostname > (or 'localhost' if hostname can't be determined) as domain part? > > Since the sendmail-calling code explicetely tests for 'from' being exactly > one address, > I guess it's an invalid assumption that a message always has a sender > address? Though > may be... mutt should exit grace fully giving some proper error message. segmentation fault looks terrible(well, at least to a end user!) > I'd be interested as to when this happens (and why) since mutt should IMHO > always generate > some sender for any outgoing message... > Rocco > > I tried to determine that, but the code is too complicated to me. I will make some more attempts.... Mathew }}} -- Ticket URL: <http://dev.mutt.org/trac/ticket/3015#comment:>