From 0512391cc3af7c16a7229bcce0c2c3da1b3fbd37 Mon Sep 17 00:00:00 2001 From: Dan Vrátil Date: Wed, 18 Jul 2012 15:09:34 +0200 Subject: Bug #680123 - Freeze on message/disposition-notification email parsing --- em-format/e-mail-formatter-text-plain.c | 5 ++++- em-format/e-mail-parser-message-deliverystatus.c | 2 ++ em-format/e-mail-parser-message-rfc822.c | 1 - em-format/e-mail-parser.c | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/em-format/e-mail-formatter-text-plain.c b/em-format/e-mail-formatter-text-plain.c index dd864e2dfc..e2e669dd41 100644 --- a/em-format/e-mail-formatter-text-plain.c +++ b/em-format/e-mail-formatter-text-plain.c @@ -31,7 +31,10 @@ #include #include -static const gchar *formatter_mime_types[] = { "text/plain", "text/*", NULL }; +static const gchar *formatter_mime_types[] = { "text/plain", + "text/*", + "message/*", + NULL }; typedef struct _EMailFormatterTextPlain { GObject parent; diff --git a/em-format/e-mail-parser-message-deliverystatus.c b/em-format/e-mail-parser-message-deliverystatus.c index 22f5d88e1f..b4aeaf3497 100644 --- a/em-format/e-mail-parser-message-deliverystatus.c +++ b/em-format/e-mail-parser-message-deliverystatus.c @@ -56,6 +56,8 @@ G_DEFINE_TYPE_EXTENDED ( e_mail_parser_parser_extension_interface_init)); static const gchar* parser_mime_types[] = { "message/delivery-status", + "message/feedback-report", + "message/disposition-notification", NULL }; static GSList * diff --git a/em-format/e-mail-parser-message-rfc822.c b/em-format/e-mail-parser-message-rfc822.c index f437ebd336..c80dfd200a 100644 --- a/em-format/e-mail-parser-message-rfc822.c +++ b/em-format/e-mail-parser-message-rfc822.c @@ -60,7 +60,6 @@ G_DEFINE_TYPE_EXTENDED ( static const gchar* parser_mime_types[] = { "message/rfc822", "message/news", - "message/*", NULL }; static GSList * diff --git a/em-format/e-mail-parser.c b/em-format/e-mail-parser.c index d173503c9e..d6ea080c9b 100644 --- a/em-format/e-mail-parser.c +++ b/em-format/e-mail-parser.c @@ -599,7 +599,7 @@ e_mail_parser_wrap_as_attachment (EMailParser *parser, reg, mime_type); if (camel_content_type_is (ct, "text", "*") || - camel_content_type_is (ct, "message", "rfc822")) + camel_content_type_is (ct, "message", "*")) snoop_mime_type = mime_type; else g_free (mime_type); -- cgit