-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make parsing recipients from EML file more lenient #227
Comments
Yikes, I think that's not RFC-compliant! That or it is a bug in the underlying Jakarta JavaMail (unlikely). The mimemessage tries to parse the header in strict mode which doesn't work. I have found a way around basically by duplicating the internal JavaMail code and forcing I'd release to Maven Central soon, but OSS Sonatype is currently experiencing network issues. |
Thanks Benny! Makes sense if there is a strict mode into play. I'm quite confused, doubting whether there is something odd with the mails I try to parse. I can hardly believe that a matured library like JavaMail would have trouble with it. I can open the mails without problem in various mail applications and with some other libraries to parse eml files. |
I agree, quite surprising. |
5.4.0 released. |
Thanks, I can confirm that I can now parse my emails :) |
I'm working on an application that has to read emails. The API of
simple-java-mail
looks great, I use it (in Kotlin) like:When actually reading an email though, I get the following error:
This is because the emails I have to read contain
from
andto
addresses which use semicolons;
as separator (theTO
field ends with a semicolon in the following example):It looks like
javax.mail.internet.InternetAddress
expects addresses to be comma separated. Is there a way to configure this?The text was updated successfully, but these errors were encountered: