Greetings,
With James-2.2/JavaMail-1.3, I was able to set the Return-Path header
in my custom mailet and it would stick. (Using
java.mail.internet.MimeMessage.setHeader("Return-Path",
"[EMAIL PROTECTED]"), I would set it to a value that is different from
Sender and From.)
I've upgraded to James-2.3/JavaMail-1.4 and that no longer works.
After setting the return-path like so...
mimeMessage.setHeader(RFC2822Headers.RETURN_PATH,
MimeUtility.encodeText(customAddressString));
...a header dump of the message clearly shows that it has been
modified correctly. However, when it gets sent, the return-path was
set to whatever the Sender (or From?) address was. I've tried
MimeMessage.addHeader(), and that doesn't work either.
Looking through the james-2.3 code I see several spots where there's
custom treatment of the Return-Path header, and the james code mucks
with it, but I haven't found exactly where it gets changed from my
custom value to Sender.
Has anyone found a way to force a setting of Return-Path in a custom
mailet? I don't see it listed as a bug, or listed as an intentionally
change after james-2.2. Any clues would be greatly appreciated.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]