Closed
Description
Even though Sender Name and Email addresse are stored in the fields 0xc1f
and 0x42
respectively, the parser extracts and overwrites this info from the transport headers 0x7d
.
If such a header contains quoted name with an @ at sign:
From: "bogus@domain.com" <bogus@domain.com>
it wrongly calls setFromEmail("\"bogus@domain.com\"", true)
When trying to use this e-mail with javax.mail
it fails:
Caused by: javax.mail.internet.AddressException: Missing final '@domain' in string ``"bogus@domain.com"''
at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1279)
Please consider reusing or copying new javax.mail.internet.InternetHeaders(InputStream)
for splitting the headers and new javax.mail.internet.InternetAddress(String)
for parsing the address string.
Metadata
Metadata
Assignees
Labels
No labels