SA Bugzilla – Bug 7479
Mutliple From addresses incorrectly parsed
Last modified: 2021-06-06 09:12:24 UTC
The following header, mentioned in the user list, isn't parsed correctly: From: Struthers@psfc.mit.edu, "Lorraine M." <alexa.morales@glcamerica.com> using these rules header __FROM_NAME From:name =~ /.*/ header __FROM_ADDR From:addr =~ /.*/ I get: __FROM_ADDR ======> got hit: "alexa.morales@glcamerica.com" __FROM_NAME ======> got hit: "Struthers@psfc.mit.edu, Lorraine M." i.e the first address has ended-up in the display name of the second address.
Not sure it can be parsed correctly. Isn't it an invalid header for From? Was it a ham or a spam in the sample?
Curreny parser is pretty lame and doesn't support multiple addresses. We need to either write our own RFC 5322 parser (*groan*) or use Email::Address::XS (which is not packaged in major distributions, *groan*).
This was fixed in Revision 1889337.