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
Order of attachments is lost when converting a MimeMessage to an Email #497
Labels
Milestone
Comments
Hmm, I'm not sure, but the decision was made in the early days of this project, presumably due to testing challenges where the attachments were out of order otherwise. However, I replaced it LinkedHashSet and everything tested fine still. Would that would for you? |
Yes, I believe so.
|
bbottema
added a commit
that referenced
this issue
Mar 20, 2024
Released in 8.7.1, can you please verify? |
I confirmed this is working as expected now! Thanks you so much!
… On Mar 20, 2024, at 1:39 PM, Benny Bottema ***@***.***> wrote:
Released in 8.7.1 <https://github.com/bbottema/simple-java-mail/releases/tag/8.7.1>, can you please verify?
—
Reply to this email directly, view it on GitHub <#497 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGTP5CMBUHA74M4SWYZ5YS3YZHXXLAVCNFSM6AAAAABEU5GZWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJQGU4DCNZRGI>.
You are receiving this because you authored the thread.
|
bbottema
added a commit
that referenced
this issue
Mar 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm writing a script that monitors an IMAP box, and clones bounce messages, adjusting the recipients so that they reach our customers' corresponding Administrators. I'm using simple-java-mail to convert an IMAPMessage/MimeMessage into an Email, which we can then feed into our existing mail subsystem. I've noticed that the order of attachments gets lost during this conversion. Bounce messages follow a specific standard, and the order of these attachments matters.
I traced it down to org.simplejavamail.converter.internal.mimemessage.ParsedMimeMessageComponents.attachmentList being a SortedSet. This effectively orders the attachments by their name. Is there a reason this isn't simply an ArrayList?
The text was updated successfully, but these errors were encountered: