bbottema/simple-java-mail

Can not parse email with blank email address headers

pyq opened this issue · 4 comments

pyq commented

For some incoming emails, it could be with header Return-Path: <>. This is possible for auto-replies emails.
This library always throws MimeMessageParseException when parsing those emails.

related code

How do you propose I check if the value is 'empty' -it's actually an invalid value according to the specs.

I just implemented a simple empty check which checks for null, "" and "<>". Did this for Return-Path as well as Return-Receipt-To and Disposition-Notification-To.

Will be in release 6.0.0. Thanks for the bug report!

Released in 6.0.0-rc1!

6.0.0 has released as well, finally.