From 8663b54cae296883452850f3baad6d4cbc92e220 Mon Sep 17 00:00:00 2001 From: Dan Vrátil Date: Wed, 25 Jul 2012 11:29:22 +0200 Subject: Highlighting of text parts and source codes This adds 'Format as' submenu to the preview pane context menu. The submenu is available only for text/plain parts or parts with a source code (we support about 40 various types). Using the 'highlight' utility, the formatter processes the part and highlights the source code it contains. (discussion in bug #680026) --- em-format/e-mail-parser-text-plain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'em-format/e-mail-parser-text-plain.c') diff --git a/em-format/e-mail-parser-text-plain.c b/em-format/e-mail-parser-text-plain.c index 00a7b53b18..1795d019a9 100644 --- a/em-format/e-mail-parser-text-plain.c +++ b/em-format/e-mail-parser-text-plain.c @@ -98,8 +98,7 @@ process_part (EMailParser *parser, } type = camel_mime_part_get_content_type (part); - if (camel_content_type_is (type, "text", "*") && - (!camel_content_type_is (type, "text", "calendar"))) { + if (!camel_content_type_is (type, "text", "calendar")) { g_string_append_printf (part_id, ".plain_text.%d", part_number); -- cgit