Skip to content

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

@GnTeezer

Description

@GnTeezer

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);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions