From a30dec16fd81cef36804cb741e2a0bb1d799dfd7 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 6 Oct 2000 01:01:26 +0000 Subject: Decode the header before writing it to the header box. 2000-10-05 Jeffrey Stedfast * 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 --- mail/ChangeLog | 3 +++ mail/mail-format.c | 8 ++++++-- 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 + * 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 #include #include #include @@ -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 = '?'; -- cgit v1.2.3