You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
List of Recipients not ordered as added (insertion order not maintained) #239
When I need to send a message to multiple recipients, no matter which method call I use, the order of the recipients is always lexicographically sorted. When I use the package of the JavaMail project to complete this function, the recipients are displayed in the order I entered.
First of all, I am very happy to get your reply.
In my work environment, the names of some important customers always start with xyz, and they want their names to appear first in the mail recipient. I can understand that Simple-Java-Mail has to sort and reorder the recipient list in order to maintain the format of various recipients, but the reality is that I do have such a requirement.
Maybe this discussion will lead to a philosophical issue. The recipients are all in the same place so they should be equal. I think it ’s similar to submitting a paper. The order of the co-authors ’signatures reflects their personal contributions to the project, so my point is that people always need to specify a certain order, even if everyone is Author of this paper.
If possible, I hope that the method for processing the sender order in Simple-Java-Mail can be overloaded with a boolean parameter. This parameter specifies whether to sort in the input order?
Thank you very much.
Interesting, I'm not even sure I have control of the order. For example, when sending from Outlook and receiving in gMail, do they appear in the order that you added them? I'll have to run a test lateron to verify.
changed the title [-]Multiple recipients cannot guarantee order as input[/-][+]List of Recipients not ordered as added (insertion order not maintained)[/+]on Dec 21, 2019
Activity
bbottema commentedon Dec 3, 2019
Can you let me know why recipients would need to be ordered according entering? I would like to know the use-case here.
moqimoqidea commentedon Dec 3, 2019
First of all, I am very happy to get your reply.
In my work environment, the names of some important customers always start with xyz, and they want their names to appear first in the mail recipient. I can understand that Simple-Java-Mail has to sort and reorder the recipient list in order to maintain the format of various recipients, but the reality is that I do have such a requirement.
Maybe this discussion will lead to a philosophical issue. The recipients are all in the same place so they should be equal. I think it ’s similar to submitting a paper. The order of the co-authors ’signatures reflects their personal contributions to the project, so my point is that people always need to specify a certain order, even if everyone is Author of this paper.
If possible, I hope that the method for processing the sender order in Simple-Java-Mail can be overloaded with a boolean parameter. This parameter specifies whether to sort in the input order?
Thank you very much.
bbottema commentedon Dec 3, 2019
Interesting, I'm not even sure I have control of the order. For example, when sending from Outlook and receiving in gMail, do they appear in the order that you added them? I'll have to run a test lateron to verify.
moqimoqidea commentedon Dec 3, 2019
Thank you for your excellent work. :)
#239: Change recipients list from Set to List to maintain insertion o…
bbottema commentedon Dec 21, 2019
Fix will be in v6.0.1 as soon as 6.0.0-rc2 comes out of the incubator. Will be a few weeks.
[-]Multiple recipients cannot guarantee order as input[/-][+]List of Recipients not ordered as added (insertion order not maintained)[/+]PascalSchumacher commentedon Jan 9, 2020
I guess the milestone of this issue should be updated, as it was released as part of
6.0.0-rc3.bbottema commentedon Jan 9, 2020
Oops. Thanks for the heads up.
bbottema commentedon Jan 24, 2020
6.0.0 has released as well, finally.