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

Add support for custom ID to be used by Java Mail on MimeMessage #79

Closed
bbottema opened this issue May 21, 2017 · 1 comment
Closed

Comments

@bbottema
Copy link
Owner

See #77 for requirement details.

Need to solve this properly though. Email is the Simple Java Mail abstraction to make the underlying API simple. Exposing MimeMessage in Email would be doing the opposite.

Instead Email will have an ID field, which will be used if provided.

Note though that the ID needs to be conform https://tools.ietf.org/html/rfc5322#section-3.6.4

@bbottema
Copy link
Owner Author

bbottema commented May 21, 2017

Released in 4.2.3

Email email = new Email();
email.setId("<123@456>");

Or

new EmailBuilder()
   .id("<123@456>")
   .build();

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

1 participant