aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-12-02 03:45:23 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-12-02 03:45:23 +0800
commitd25b4aee09e5790f8658205cd6422e8a02d57f13 (patch)
tree5afeb0d38b9e5e09ac87f6c1b08907eb67dd81bf /mail/em-composer-utils.c
parent6c207314b897754eb98c433b3a8d580a7dfbeda6 (diff)
downloadgsoc2013-evolution-d25b4aee09e5790f8658205cd6422e8a02d57f13.tar
gsoc2013-evolution-d25b4aee09e5790f8658205cd6422e8a02d57f13.tar.gz
gsoc2013-evolution-d25b4aee09e5790f8658205cd6422e8a02d57f13.tar.bz2
gsoc2013-evolution-d25b4aee09e5790f8658205cd6422e8a02d57f13.tar.lz
gsoc2013-evolution-d25b4aee09e5790f8658205cd6422e8a02d57f13.tar.xz
gsoc2013-evolution-d25b4aee09e5790f8658205cd6422e8a02d57f13.tar.zst
gsoc2013-evolution-d25b4aee09e5790f8658205cd6422e8a02d57f13.zip
rfc2047 encode the Organization header value.
2003-12-01 Jeffrey Stedfast <fejj@ximian.com> * em-composer-utils.c (composer_get_message): rfc2047 encode the Organization header value. svn path=/trunk/; revision=23535
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c9
1 files changed, 7 insertions, 2 deletions
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 */