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.
bbottema commented
How do you propose I check if the value is 'empty' -it's actually an invalid value according to the specs.
bbottema commented
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!
bbottema commented
Released in 6.0.0-rc1!
bbottema commented
6.0.0 has released as well, finally.