james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf Hauser (JIRA)" <server-...@james.apache.org>
Subject [jira] Created: (JAMES-351) allow "message/disposition-notification" to also attach (excerpts of) the original
Date Sun, 16 Jan 2005 18:41:19 GMT
allow "message/disposition-notification" to also attach (excerpts of) the original
----------------------------------------------------------------------------------

         Key: JAMES-351
         URL: http://issues.apache.org/jira/browse/JAMES-351
     Project: James
        Type: Bug
  Components: James Core  
    Versions: 2.2.1    
 Environment: debian sarge
    Reporter: Ralf Hauser


org.apache.james.util.mail.handlers.message_disposition_notification.writeTo() blocks anything
but Strings.

As per http://www.faqs.org/rfcs/rfc2298.html 3 (d), it is ok also: "If the original message
or a portion of the message is to be
        returned to the sender, it appears as the third component of the multipart/report",
therefore the if statement should be replaced by

if (!((aPart instanceof String) || (aPart instanceof MimeMessage))) {
            //as per http://www.faqs.org/rfcs/rfc2298.html 3 (d) 
            throw new IOException("Type \"" + aPart.getClass().getName()
                    + "\" is not supported.");
        }
        if ((aPart instanceof MimeMessage)) {
            try {
                ((MimeMessage) aPart).writeTo(aStream);
                return;
            } catch (Exception e) {
                //log.error(e.getMessage());
                e.printStackTrace();
                throw new IOException(e.getMessage());
            }
        }

multipart/reports of this form are handled well by Thunderbird, their attachments are ignored
by MS-Outlook 2003.

Sure, normally such a disposition notification is generated by the UA that james is not to
date. But if a UA were to reuse james classes (e.g. a web-app on the server), this might be
useful?

If that RFC is relevant, how about also adding it to http://james.apache.org/rfclist.html?

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