diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-12-02 03:45:23 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-12-02 03:45:23 +0800 |
commit | d25b4aee09e5790f8658205cd6422e8a02d57f13 (patch) | |
tree | 5afeb0d38b9e5e09ac87f6c1b08907eb67dd81bf | |
parent | 6c207314b897754eb98c433b3a8d580a7dfbeda6 (diff) | |
download | gsoc2013-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
-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 */ |