mail-api
mail-api copied to clipboard
addHeader creating a duplicate header entry
Describe the bug Add header creating a duplicate header. This leads to silent drop of one of the header (the latter in the header list). To Reproduce Steps to reproduce the behavior:
- Create MimeMessage
- Add header "Message-Id"
Expected behavior Added Message-Id should be preserved but due to duplicates in the header list the added Message-Id is ignored.
Screenshots
Additional context Workaround: use setHeader in conjunction with https://github.com/eclipse-ee4j/mail/issues/432 fix.