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
Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAMES-139

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
 Components: 
             Mailet API
   Versions:
             2.1

   Assignee: 
   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

Description:
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">
     <recipients>yyyy@yyyyy</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());
    }


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message