From bb0ac533c471c5de15312e5d201b6f61fcfe4f09 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 30 Sep 2013 15:36:49 -0400 Subject: Bug 708390 - text-highlight: Don't interfere with printing The text-highlight module is for enhancing the *display* of textual email parts. It should not interfere at all when printing an email. (cherry picked from commit 169ec754ae991e0bd3975ee89e6110f1a0a8d841) --- .../e-mail-formatter-text-highlight.c | 29 ++-------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/modules/text-highlight/e-mail-formatter-text-highlight.c b/modules/text-highlight/e-mail-formatter-text-highlight.c index b387408573..ce61d88ed3 100644 --- a/modules/text-highlight/e-mail-formatter-text-highlight.c +++ b/modules/text-highlight/e-mail-formatter-text-highlight.c @@ -139,33 +139,8 @@ emfe_text_highlight_format (EMailFormatterExtension *extension, } if (context->mode == E_MAIL_FORMATTER_MODE_PRINTING) { - CamelDataWrapper *dw; - CamelStream *filter_stream; - CamelMimeFilter *mime_filter; - - dw = camel_medium_get_content (CAMEL_MEDIUM (mime_part)); - if (dw == NULL) - goto exit; - - camel_stream_write_string ( - stream, "
", cancellable, NULL); - - filter_stream = camel_stream_filter_new (stream); - mime_filter = camel_mime_filter_tohtml_new ( - CAMEL_MIME_FILTER_TOHTML_PRE | - CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES, 0); - camel_stream_filter_add ( - CAMEL_STREAM_FILTER (filter_stream), mime_filter); - g_object_unref (mime_filter); - - e_mail_formatter_format_text ( - formatter, part, filter_stream, cancellable); - - camel_stream_flush (filter_stream, cancellable, NULL); - g_object_unref (filter_stream); - - camel_stream_write_string ( - stream, "
", cancellable, NULL); + /* Don't interfere with printing. */ + goto exit; } else if (context->mode == E_MAIL_FORMATTER_MODE_RAW) { gint pipe_stdin, pipe_stdout; -- cgit v1.2.3