<<< Date Index >>>     <<< Thread Index >>>

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

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
 I'd be interested as to when this happens (and why) since mutt should IMHO
 always generate
 some sender for any outgoing message...

 Rocco

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3015#comment:2>