Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 'IllegalArgumentException: emailAddressList is required' when parsing mail with incorrect recipients from Outlook message #482

Closed
piu130 opened this issue Dec 8, 2023 · 1 comment

Comments

@piu130
Copy link

piu130 commented Dec 8, 2023

When parsing an msg with an invalid recipient, the parser throws IllegalArgumentException: emailAddressList is required.

Would be nice to either do it like outlook client and just return (render) the name without email or ignore it completely without failing.

Her is an example: emailAddressList_is_required.zip

Stacktrace (v8.3.3):

java.lang.IllegalArgumentException: emailAddressList is required
    at org.simplejavamail.internal.util.Preconditions.verifyNonnullOrEmpty(Preconditions.java:49)
    at org.simplejavamail.internal.util.Preconditions.checkNonEmptyArgument(Preconditions.java:30)
    at org.simplejavamail.internal.util.MiscUtil.extractEmailAddresses(MiscUtil.java:166)
    at org.simplejavamail.email.internal.EmailPopulatingBuilderImpl.withRecipients(EmailPopulatingBuilderImpl.java:1457)
    at org.simplejavamail.email.internal.EmailPopulatingBuilderImpl.to(EmailPopulatingBuilderImpl.java:870)
    at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.copyReceiversFromOutlookMessage(OutlookEmailConverter.java:175)
    at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.buildEmailFromOutlookMessage(OutlookEmailConverter.java:115)
    at org.simplejavamail.internal.outlooksupport.converter.OutlookEmailConverter.outlookMsgToEmailBuilder(OutlookEmailConverter.java:89)
    at org.simplejavamail.converter.EmailConverter.outlookMsgToEmailBuilder(EmailConverter.java:250)
    at org.simplejavamail.converter.EmailConverter.outlookMsgToEmail(EmailConverter.java:228)
    at org.simplejavamail.converter.EmailConverter.outlookMsgToEmail(EmailConverter.java:220)
    ...
@bbottema bbottema changed the title 'IllegalArgumentException: emailAddressList is required' when parsing mail with incorrect recipients 'IllegalArgumentException: emailAddressList is required' when parsing mail with incorrect recipients from Outlook message Dec 10, 2023
@bbottema bbottema changed the title 'IllegalArgumentException: emailAddressList is required' when parsing mail with incorrect recipients from Outlook message Bug: 'IllegalArgumentException: emailAddressList is required' when parsing mail with incorrect recipients from Outlook message Dec 10, 2023
@bbottema
Copy link
Owner

Fixed in 8.3.5. Thanks for reporting!

@bbottema bbottema added this to the 8.3.5 milestone Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants