DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24053>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24053 Redirect mailet: MIME-encoded subject is changed event if a prefix is not specified Summary: Redirect mailet: MIME-encoded subject is changed event if a prefix is not specified Product: James Version: 2.1 Platform: PC OS/Version: FreeBSD Status: NEW Severity: Normal Priority: Other Component: Mailet API AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When a message was processed by Redirect mailet, a MIME-encoded subject may be changed its charset to server's default charset. Javamail decodes/encodes a header automatically. If a prefix was specified, change of charset is reasonable, because a header is modified. But even if a prefix was not specified, Redirect mailet changes a charset of a header without any text addition. I'm using Redirect mailet on James 2.1.3 with settings like below. <mailet match="[EMAIL PROTECTED]" class="Redirect"> <recipients>[EMAIL PROTECTED]</recipients> <inline>unaltered</inline> <attachment>none</attachment> <passThrough>TRUE</passThrough> </mailet> I thought the mailet will duplicate a message as it is. But a MIME-encoded subject is re-encoded with a default encoding. A problem may occur if javamail couldn't decode a subject header correctly or if server's locale was not set appropriately. Please don't touch a subject header when a prefix is not specified: //Set additional headers if (!getSubjectPrefix().equals("")) { reply.setSubject(getSubjectPrefix() + message.getSubject()); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
