2005-07-18 Helge Hess <helge.hess@opengroupware.org>
+ * UIxMailRenderingContext.m: map multipart/report mimetype to use the
+ multipart/mixed viewer, map message/delivery-status mimetype to use
+ the link viewer (v0.9.15)
+
* v0.9.14
* UIxMailPartICalViewer.m: replaced some methods with label bindings
return [self signedViewer];
if ([st isEqualToString:@"alternative"])
return [self alternativeViewer];
+
+ if ([st isEqualToString:@"report"])
+ /* this is used by mail-delivery reports */
+ return [self mixedViewer];
}
else if ([mt isEqualToString:@"text"]) {
if ([st isEqualToString:@"plain"])
return [self imageViewer];
else if ([mt isEqualToString:@"message"] && [st isEqualToString:@"rfc822"])
return [self messageViewer];
+ else if ([mt isEqualToString:@"message"] &&
+ [st isEqualToString:@"delivery-status"]) {
+ /*
+ Content-Description: Delivery error report
+ Content-Type: message/delivery-status
+
+ Reporting-MTA: dns; mail.opengroupware.org
+ Arrival-Date: Mon, 18 Jul 2005 12:08:43 +0200 (CEST)
+
+ Final-Recipient: rfc822; ioioi@plop.com
+ Action: failed
+ Status: 5.0.0
+ Diagnostic-Code: X-Postfix; host plop.com[64.39.31.55] said: 550 5.7.1
+ <ioioi@plop.com>... Relaying denied
+ */
+ // Note: we cannot use the text viewer because the body is not pre-fetched
+ return [self linkViewer];
+ }
else if ([mt isEqualToString:@"application"]) {
// octet-stream (generate download link?, autodetect type?)