Skip to content
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

List of Recipients not ordered as added (insertion order not maintained) #239

Closed
moqimoqidea opened this issue Dec 3, 2019 · 8 comments
Closed

Comments

@moqimoqidea
Copy link

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.

@bbottema
Copy link
Owner

bbottema commented 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
Copy link
Author

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
Copy link
Owner

bbottema commented 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
Copy link
Author

Thank you for your excellent work. :)

@bbottema
Copy link
Owner

Fix will be in v6.0.1 as soon as 6.0.0-rc2 comes out of the incubator. Will be a few weeks.

@bbottema bbottema added this to the 6.0.1 milestone Dec 21, 2019
@bbottema bbottema changed the title Multiple recipients cannot guarantee order as input List of Recipients not ordered as added (insertion order not maintained) Dec 21, 2019
@PascalSchumacher
Copy link
Contributor

I guess the milestone of this issue should be updated, as it was released as part of 6.0.0-rc3.

@bbottema bbottema modified the milestones: 6.0.1, 6.0.0-rc3 Jan 9, 2020
@bbottema
Copy link
Owner

bbottema commented Jan 9, 2020

I guess the milestone of this issue should be updated, as it was released as part of 6.0.0-rc3.

Oops. Thanks for the heads up.

@bbottema
Copy link
Owner

6.0.0 has released as well, finally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants