[evolution/webkit: 120/146] Convert short headers subject to HTML and preserve 8bit encoding
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit: 120/146] Convert short headers subject to HTML and preserve 8bit encoding
- Date: Thu, 9 Feb 2012 14:28:32 +0000 (UTC)
commit e4c4cc4755cbc3e7a75950587bc742b181ca1594
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 1bb5e84..1be81f7 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -2200,10 +2200,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]