From d25b4aee09e5790f8658205cd6422e8a02d57f13 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 1 Dec 2003 19:45:23 +0000 Subject: rfc2047 encode the Organization header value. 2003-12-01 Jeffrey Stedfast * em-composer-utils.c (composer_get_message): rfc2047 encode the Organization header value. svn path=/trunk/; revision=23535 --- mail/em-composer-utils.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mail/em-composer-utils.c') diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 75166a19b4..f64ecee5dd 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -378,8 +378,13 @@ composer_get_message (EMsgComposer *composer, gboolean post, gboolean save_html_ camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Account", account->name); camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Transport", account->transport->url); camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc", account->sent_folder_uri); - if (account->id->organization && *account->id->organization) - camel_medium_set_header (CAMEL_MEDIUM (message), "Organization", account->id->organization); + if (account->id->organization && *account->id->organization) { + char *org; + + org = camel_header_encode_string (account->id->organization); + camel_medium_set_header (CAMEL_MEDIUM (message), "Organization", org); + g_free (org); + } } /* Get the message recipients and 'touch' them, boosting their use scores */ -- cgit