You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Ralf Hauser (JIRA)" <se...@james.apache.org> on 2005/01/16 19:41:19 UTC
[jira] Created: (JAMES-351) allow "message/disposition-notification" to also attach (excerpts of) the original
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
[jira] Assigned: (JAMES-351) allow
"message/disposition-notification" to also attach (excerpts of) the
original
Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/JAMES-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer reassigned JAMES-351:
-----------------------------------
Assignee: Norman Maurer
> allow "message/disposition-notification" to also attach (excerpts of) the original
> ----------------------------------------------------------------------------------
>
> Key: JAMES-351
> URL: https://issues.apache.org/jira/browse/JAMES-351
> Project: JAMES Server
> Issue Type: Bug
> Components: James Core
> Affects Versions: 2.3.0
> Environment: debian sarge
> Reporter: Ralf Hauser
> Assignee: Norman Maurer
>
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org