james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Closed: (JAMES-139) Redirect mailet: MIME-encoded subject is changed event if a prefix is not specified
Date Sun, 06 Jun 2004 18:49:53 GMT

   The following issue has been closed.

View the issue:

Here is an overview of the issue:
        Key: JAMES-139
    Summary: Redirect mailet: MIME-encoded subject is changed event if a prefix is not specified
       Type: Bug

     Status: Closed
 Resolution: FIXED

    Project: James
             Mailet API

   Reporter: Iwasa Kazmi

    Created: Thu, 23 Oct 2003 12:01 PM
    Updated: Sun, 6 Jun 2004 11:49 AM
Environment: Operating System: FreeBSD
Platform: PC

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="SenderIs=xxxx@xxxxx" class="Redirect">

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

    //Set additional headers
    if (!getSubjectPrefix().equals("")) {
        reply.setSubject(getSubjectPrefix() + message.getSubject());

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message