diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 3 | ||||
-rw-r--r-- | mail/em-composer-utils.c | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 45b30a2acf..9e8554cc40 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2003-12-01 Jeffrey Stedfast <fejj@ximian.com> + * em-composer-utils.c (composer_get_message): rfc2047 encode the + Organization header value. + * em-folder-tree.c (em_folder_tree_get_folder_info__got): Make sure our parent folder hasn't been unsubscribed or else we get a segfault here if it has. 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 */ |