-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug: MimeMessageParser rejects attachments with duplicate names #219
Comments
Is this a real use case? |
Yes. Real email that went through MimeMessageParser (v. 5.1.7). |
Essentially replacing the Map with a List<Map.Entry) does the job BTW, you can add attachments with the same name in Gmail. |
Ok, you made a convincing case. If you feel up to it, I'll accept a PR on master! Or else I'll pick it up in due time. |
Fixed and released in 5.2.1! |
Seems to be still there in Simple Java Mail 6.5.0: WIll not work with two attachments named e.g.: i.e. no suffix in one case. |
MimeMessageParser uses a Map for the attachments:
However an email can have 2 attachments with the same name. The Map will just replace any existing attachment.
The text was updated successfully, but these errors were encountered: