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
Describe the bug
Custom Message-ID header is being overridden by the API To Reproduce
Steps to reproduce the behavior:
Set message-id header <[email protected]> and send out the mail
Expected behavior
The message header should be message-id: <[email protected]>
Currently, the API generates message-id and
uses it overriding the user provided message id.
jakartaee#432
This fix should be used with setHeader method.
addHeader method has the following issue
jakartaee#433
leading to the override despite this fix.
Signed-off-by: Venkat <[email protected]>
Describe the bug
Custom Message-ID header is being overridden by the API
To Reproduce
Steps to reproduce the behavior:
Set message-id header <[email protected]> and send out the mail
Expected behavior
The message header should be message-id: <[email protected]>
Additional context
Seems, message-id being set to generated unique-id irrespective of headers set by API user.
https://github.com/eclipse-ee4j/mail/blob/4c092797479f6fb05576e723a6855a7e116ed027/mail/src/main/java/javax/mail/internet/MimeMessage.java#L2210
generated message id should be used only when
if (getHeader("Message-ID") == null)
Could not verify the above fix due to #431
The text was updated successfully, but these errors were encountered: