Closed dharley-gaggle closed 1 month ago
I am in the process of creating a java-based test case to replicate this issue, and will attach to this ticket when complete.
lol, built my simple client...and the problem didn't occur.
so, i debugged extensively and it turned out the problem was occurring because the multipart was being cached, so fixed by setting -Dmail.mime.cachemultipart=false
everywhere necessary.
Describe the bug We are a "man in the middle" processing emails (basically just adding a couple of our headers and then calling saveChanges() as per the javadocs), and then forwarding the email along. For customers that are using gmail, we are failing DKIM checks because saveChanges() causes a new line to be inserted between body part boundaries (gmail doesn't put them there, for wahtever reason), which causes DKIM validation to fail because the body hash has been modified.
To Reproduce Steps to reproduce the behavior:
Expected behavior The message should not modify the body at all when saveChanges() called.
Screenshots <redacted, due to stupidity>
Desktop (please complete the following information):
Mail server:
Additional context We were initially on jakarta mail 1.6.5, but have verified same erroneous behavior with the latest 1.6.7 release.