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

MimeMessageParser doesn't handle multiple attachments with the same name correctly #249

Closed
GnTeezer opened this issue Feb 26, 2020 · 1 comment

Comments

@GnTeezer
Copy link

ParsedMimeMessageComponents uses a TreeSet with a NaturalEntryKeyComparator to store the attachment list.

This means that if we parse an email has multiple attachments with the same name we only get one as each attachment with the same name replaces the previous one.

final Set<Map.Entry<String, DataSource>> attachmentList = new TreeSet<>(NaturalEntryKeyComparator.INSTANCE);

@bbottema bbottema added this to the 6.0.4 milestone Mar 20, 2020
@bbottema
Copy link
Owner

bbottema commented May 3, 2020

Fix released in 6.0.4.

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