Hi, we're seeing that this method in mime4j's LenientAddressParser: 

private Mailbox createMailbox(final String localPart) { if (localPart != null 
&& localPart.length() >0) { return new Mailbox(null, null, localPart, null); } 
else{ return null; } } 

Creates invalid addresses when the localPart is encoded, which it is in some 
emails, so I'm suggesting to change it to this: 

private Mailbox createMailbox(final String localPart) { if (localPart != null 
&& localPart.length() >0) { return new Mailbox(null, null, DecoderUtil
.decodeEncodedWords(localPart,this.monitor), null); } else { return null; } } 

We've used a custom build with this change for years now with no problems. 

What do you think? 



-- 
Andreas Joseph Krogh 
CTO / Partner - Visena AS 
Mobile: +47 909 56 963 
[email protected] <mailto:[email protected]> 
www.visena.com <https://www.visena.com> 
 <https://www.visena.com> 
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to