Message: The following issue has been closed.
--------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/JAMES-95 Here is an overview of the issue: --------------------------------------------------------------------- Key: JAMES-95 Summary: Redirect mailet mishandles message.getContent() Type: Bug Status: Closed Resolution: FIXED Project: James Components: Mailet API Versions: 2.1 Assignee: Reporter: Chris Means Created: Sat, 15 Mar 2003 5:40 PM Updated: Sun, 6 Jun 2004 1:53 PM Environment: Operating System: All Platform: All Description: If Redirect handles a message where the content type is multipart, then the message itself is not redirected only something like: [EMAIL PROTECTED] gets sent as the message body. (Comments from Noel): Redirect calls message.getContent().toString(). The problem is that the getContent() method returns a String if the content is "text/plain", an InputStream if it there is no DataHandler, and a Multipart object if the content is a multipart type. This bug can be reproduced by configuring the mailet with <inline> all </inline> parameter, and then sending a message in HTML that would trigger the mailet: <mailet match="[EMAIL PROTECTED]" class="Redirect"> <recipients> [EMAIL PROTECTED] </recipients> <inline> all </inline> <replyto> postmaster </replyto> <static> true </static> <passThrough> false </passThrough> </mailet> Though I've only tested this on WinNT v4.0 SP6a, JDK 1.4.1_01, and James 2.1.2a2, given the Redirect code is the same on all platforms, it is expected to have the same problem on all platforms and environments. --------------------------------------------------------------------- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
