aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-06 09:01:26 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-06 09:01:26 +0800
commita30dec16fd81cef36804cb741e2a0bb1d799dfd7 (patch)
treedcf4c7307a7aed13e9db8e013582821ee5fb50b9
parent1d7f4317543842ec64e2962c662b04b9f36c6e33 (diff)
downloadgsoc2013-evolution-a30dec16fd81cef36804cb741e2a0bb1d799dfd7.tar
gsoc2013-evolution-a30dec16fd81cef36804cb741e2a0bb1d799dfd7.tar.gz
gsoc2013-evolution-a30dec16fd81cef36804cb741e2a0bb1d799dfd7.tar.bz2
gsoc2013-evolution-a30dec16fd81cef36804cb741e2a0bb1d799dfd7.tar.lz
gsoc2013-evolution-a30dec16fd81cef36804cb741e2a0bb1d799dfd7.tar.xz
gsoc2013-evolution-a30dec16fd81cef36804cb741e2a0bb1d799dfd7.tar.zst
gsoc2013-evolution-a30dec16fd81cef36804cb741e2a0bb1d799dfd7.zip
Decode the header before writing it to the header box.
2000-10-05 Jeffrey Stedfast <fejj@helixcode.com> * mail-format.c (write_field_to_stream): Decode the header before writing it to the header box. * mail-callbacks.c (send_receieve_mail): fetch mail before sending, this is a temp fix for POP-before-SMTP authentication. svn path=/trunk/; revision=5759
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-format.c8
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 3327d5584a..55e6dd1824 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2000-10-05 Jeffrey Stedfast <fejj@helixcode.com>
+ * mail-format.c (write_field_to_stream): Decode the header before
+ writing it to the header box.
+
* mail-callbacks.c (send_receieve_mail): fetch mail before
sending, this is a temp fix for POP-before-SMTP authentication.
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 79a49bde74..5d7cb1f695 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -29,6 +29,7 @@
#include "mail.h"
#include "shell/e-setup.h"
#include "e-util/e-html-utils.h"
+#include <camel/camel-mime-utils.h>
#include <libgnome/libgnome.h>
#include <libgnomevfs/gnome-vfs-mime-info.h>
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
@@ -546,11 +547,14 @@ write_field_to_stream (const char *description, const char *value,
char *encoded_value;
if (value) {
- unsigned char *p;
+ unsigned char *raw, *p;
- encoded_value = e_text_to_html (value,
+ raw = header_decode_string (value);
+
+ encoded_value = e_text_to_html (raw,
E_TEXT_TO_HTML_CONVERT_NL |
E_TEXT_TO_HTML_CONVERT_URLS);
+ g_free (raw);
for (p = (unsigned char *)encoded_value; *p; p++) {
if (!isprint (*p))
*p = '?';