diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-07-18 21:09:34 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-07-18 21:12:08 +0800 |
commit | 0512391cc3af7c16a7229bcce0c2c3da1b3fbd37 (patch) | |
tree | 6919779b35c1ad3240323ea1444519d9bfb2d2cb /em-format | |
parent | 0e63a88ff141d2473e60df4e6b0a29def0a9e74b (diff) | |
download | gsoc2013-evolution-0512391cc3af7c16a7229bcce0c2c3da1b3fbd37.tar.gz gsoc2013-evolution-0512391cc3af7c16a7229bcce0c2c3da1b3fbd37.tar.zst gsoc2013-evolution-0512391cc3af7c16a7229bcce0c2c3da1b3fbd37.zip |
Bug #680123 - Freeze on message/disposition-notification email parsing
Diffstat (limited to 'em-format')
-rw-r--r-- | em-format/e-mail-formatter-text-plain.c | 5 | ||||
-rw-r--r-- | em-format/e-mail-parser-message-deliverystatus.c | 2 | ||||
-rw-r--r-- | em-format/e-mail-parser-message-rfc822.c | 1 | ||||
-rw-r--r-- | 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 <glib/gi18n-lib.h> #include <camel/camel.h> -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); |