[evolution/webkit: 120/182] Convert short headers subject to HTML and preserve 8bit encoding



commit 0cdd8301fa98a2d2957b5bfd4341fcd23bc4d32f
Author: Dan VrÃtil <dan progdan cz>
Date:   Wed Jan 18 21:10:51 2012 +0100

    Convert short headers subject to HTML and preserve 8bit encoding
    
    8bit encoded subjects are now correctly displayed in short headers view

 mail/em-format-html.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 7e472c3..9615596 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -2194,10 +2194,11 @@ efh_format_short_headers (EMFormatHTML *efh,
 
 		} else if (!g_ascii_strcasecmp (header->name, "Subject")) {
 			gchar *buf = NULL;
-			buf = camel_header_unfold (header->value);
+			subject = camel_header_unfold (header->value);
+			buf = camel_header_decode_string (subject, hdr_charset);
 			g_free (subject);
-			subject = camel_header_decode_string (buf, hdr_charset);
-			g_free (buf);
+                        subject = camel_text_to_html (buf, CAMEL_MIME_FILTER_TOHTML_PRESERVE_8BIT, 0);
+                        g_free (buf);
 		}
 		header = header->next;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]