-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Milestone
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: "[email protected]" <[email protected]>
it wrongly calls setFromEmail("\"[email protected]\"", true)
When trying to use this e-mail with javax.mail it fails:
Caused by: javax.mail.internet.AddressException: Missing final '@domain' in string ``"[email protected]"''
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