mail-api icon indicating copy to clipboard operation
mail-api copied to clipboard

addHeader creating a duplicate header entry

Open venkatsc opened this issue 4 years ago • 0 comments

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:

  1. Create MimeMessage
  2. 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 duplicate-message-id-header

Additional context Workaround: use setHeader in conjunction with https://github.com/eclipse-ee4j/mail/issues/432 fix.

venkatsc avatar Mar 18 '20 17:03 venkatsc