Closed vtoc closed 3 years ago
Cheers for this, I had a user report the same as they've had a few senders using that 'Surname, Firstname' style. However I think the issue still remains in a sense, because a comma in the display name breaks the 'to' form field. I'm guessing because the parsing right after is looking purely for commas, whether they are quoted or not.
It's a shame it doesn't use semi-colons to split addresses in the form field instead of a comma. I might see if I can have a play around.
It's not possible to reply to a mail with quoted From or Reply-To header, which is pefectly valid:
Will become:
Which is invalid and therefore leads to an error, when clicking on Send:
The reason is, in email.utils parseaddr, which is used by ImapEmail thru modoboas EmailAddress class and does return the address as:
Seems to not really be a bug of modooa, however as the lib is what it is, i think it cannot be used as source for reply, an easy enough workarround is"