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
This commit is contained in:
Jeffrey Stedfast
2000-10-06 01:01:26 +00:00
committed by Jeffrey Stedfast
parent 1d7f431754
commit a30dec16fd
2 changed files with 9 additions and 2 deletions

View File

@ -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.

View File

@ -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 = '?';