aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-17 18:37:13 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-17 18:37:13 +0800
commit09d1a191ee08f27fb7b2103142dc2b8578875411 (patch)
tree784a655525aaf267e0e4dc77225bdf46620b0647 /mail/em-format.c
parent9801f37793cd5ef06da86ce96d52bc66e77083d5 (diff)
downloadgsoc2013-evolution-09d1a191ee08f27fb7b2103142dc2b8578875411.tar
gsoc2013-evolution-09d1a191ee08f27fb7b2103142dc2b8578875411.tar.gz
gsoc2013-evolution-09d1a191ee08f27fb7b2103142dc2b8578875411.tar.bz2
gsoc2013-evolution-09d1a191ee08f27fb7b2103142dc2b8578875411.tar.lz
gsoc2013-evolution-09d1a191ee08f27fb7b2103142dc2b8578875411.tar.xz
gsoc2013-evolution-09d1a191ee08f27fb7b2103142dc2b8578875411.tar.zst
gsoc2013-evolution-09d1a191ee08f27fb7b2103142dc2b8578875411.zip
format as plain text too.
2004-03-17 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_message_deliverystatus): format as plain text too. * em-format.c (emf_message_deliverystatus): format delivery status messages as plain text, rather than as messages. since they wont be CamelMimeMessages. Maybe they should be silently hidden. svn path=/trunk/; revision=25098
Diffstat (limited to 'mail/em-format.c')
-rw-r--r--mail/em-format.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-format.c b/mail/em-format.c
index cbccba6fc8..5eaa4328b9 100644
--- a/mail/em-format.c
+++ b/mail/em-format.c
@@ -1378,6 +1378,12 @@ emf_message_rfc822(EMFormat *emf, CamelStream *stream, CamelMimePart *part, cons
g_string_truncate(emf->part_id, len);
}
+static void
+emf_message_deliverystatus(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const EMFormatHandler *info)
+{
+ em_format_format_text(emf, stream, camel_medium_get_content_object((CamelMedium *)part));
+}
+
static EMFormatHandler type_builtin_table[] = {
#ifdef ENABLE_SMIME
{ "application/x-pkcs7-mime", (EMFormatFunc)emf_application_xpkcs7mime, EM_FORMAT_HANDLER_INLINE_DISPOSITION },
@@ -1391,6 +1397,7 @@ static EMFormatHandler type_builtin_table[] = {
{ "multipart/*", emf_multipart_mixed },
{ "message/rfc822", emf_message_rfc822, EM_FORMAT_HANDLER_INLINE },
{ "message/news", emf_message_rfc822, EM_FORMAT_HANDLER_INLINE },
+ { "message/delivery-status", emf_message_deliverystatus },
{ "message/*", emf_message_rfc822, EM_FORMAT_HANDLER_INLINE },
/* Insert brokenly-named parts here */