#3855: Mutt doesn't understand multiple emails addresses in angle brackets
----------------------+----------------------
  Reporter:  Pynsent  |      Owner:  brendan
      Type:  defect   |     Status:  reopened
  Priority:  major    |  Milestone:
 Component:  IMAP     |    Version:
Resolution:           |   Keywords:
----------------------+----------------------

Comment (by vinc17):

 Replying to [ticket:3855 Pynsent]:
 > I just received an email with the following headers.
 >
 >     From: Sender name <[email protected]>
 >     To: Recipient A <[email protected]>, Group name <[email protected], [email protected]>
 >
 > Note the multiple email addresses in the final brackets. My address is
 [email protected], and I received this email fine, so I'm presuming that this
 format is legitimate. (FWIW this was composed on an iPhone.)

 During SMTP transport, the headers are not used at all. Every address is
 in the envelope. So, do not assume anything about the headers, even if
 they are valid.

 > However, when I attempt to group-reply, the draft is only addressed to
 [email protected], not [email protected] and [email protected] as well.

 Mutt ignores a malformed header, which is perfectly fine. This may be
 safer than sending a mail to the wrong person. But I think that a warning
 would have been better, perhaps letting you manually edit and correct the
 contents (but AFAIK, parsing has already been done, so that this may be
 too late).

 > I tried manually adding these to the cc: field in the editor.
 >
 >     Cc: Recipient A <[email protected]>, Group name <[email protected], [email protected]>
 >
 > However, after saving and exiting my editor, mutt removed *all* the
 Cc:ed addresses (including [email protected]).

 If Mutt didn't signal an error, I think this is bad. This means that a
 typo can cause data loss.

 > I also tested creating a new email to
 >
 >     Group name <[email protected], [email protected]>
 >
 > But after hitting enter, mutt refused to continue.

 Ditto, I think that the right behavior would be an error message, then
 back to the "To:" prompt. Do not lose what the user has typed.

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3855#comment:6>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to