MimeMessageParser doesn't handle multiple attachments with the same name correctly
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 275
Description
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); |