Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.3.0
-
None
-
None
-
debian sarge
Description
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
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?