You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" org.simplejavamail.converter.internal.mimemessage.MimeMessageParseException: Error parsing [Disposition-Notification-To] address [Könok, Danny [Fake Company & Co. KG] <test@fakedomain.de>]
at org.simplejavamail.converter.internal.mimemessage.MimeMessageParser.createAddress(MimeMessageParser.java:316)
at org.simplejavamail.converter.internal.mimemessage.MimeMessageParser.parseHeader(MimeMessageParser.java:162)
at org.simplejavamail.converter.internal.mimemessage.MimeMessageParser.parseMimePartTree(MimeMessageParser.java:94)
at org.simplejavamail.converter.internal.mimemessage.MimeMessageParser.parseMimeMessage(MimeMessageParser.java:87)
at org.simplejavamail.converter.EmailConverter.mimeMessageToEmailBuilder(EmailConverter.java:138)
at org.simplejavamail.converter.EmailConverter.mimeMessageToEmailBuilder(EmailConverter.java:125)
at org.simplejavamail.converter.EmailConverter.emlToEmailBuilder(EmailConverter.java:399)
at org.simplejavamail.converter.EmailConverter.emlToEmailBuilder(EmailConverter.java:378)
at org.simplejavamail.converter.EmailConverter.emlToEmail(EmailConverter.java:312)
at org.simplejavamail.converter.EmailConverter.emlToE
mail(EmailConverter.java:304)
at de.otris.documents.simplejavamail.SimpleJavaMailTests.main(SimpleJavaMailTests.java:18)
Caused by: jakarta.mail.internet.AddressException: Illegal address in string ``Könok, Danny [Fake Company & Co. KG] <test@fakedomain.de>''
at jakarta.mail.internet.InternetAddress.<init>(InternetAddress.java:103)
at org.simplejavamail.converter.internal.mimemessage.MimeMessageParser.createAddress(MimeMessageParser.java:311)
... 10 more
This does not happen with "From", the same encoded content parses as expected.
I've attached an example mail where both "Disposition-Notification-To" and "From" contain umlauts: T24-01123.zip
The text was updated successfully, but these errors were encountered:
bbottema
changed the title
Disposition-Notification-To with umlaut
[bug] Fix parsing addresses from headers in EML files, like a Disposition-Notification-To with umlaut
Apr 4, 2024
When the "Disposition-Notification-To" contains an umlaut the content is encoded like this:
the following error occurs when trying to convert it to an Email object:
This does not happen with "From", the same encoded content parses as expected.
I've attached an example mail where both "Disposition-Notification-To" and "From" contain umlauts: T24-01123.zip
The text was updated successfully, but these errors were encountered: