diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-08-23 06:04:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-08-23 06:04:36 +0800 |
commit | b0e603fa0fda57dd9b268b7286259522010a2f48 (patch) | |
tree | 1972b57eadd920783e9b52f029ad8020e831809f /composer/e-msg-composer-hdrs.c | |
parent | 808e179d48cc2f3f7400b5007949064b147db7e4 (diff) | |
download | gsoc2013-evolution-b0e603fa0fda57dd9b268b7286259522010a2f48.tar.gz gsoc2013-evolution-b0e603fa0fda57dd9b268b7286259522010a2f48.tar.zst gsoc2013-evolution-b0e603fa0fda57dd9b268b7286259522010a2f48.zip |
Fixes bug #29016
2002-08-22 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #29016
* e-msg-composer.c (e_msg_composer_new_with_message): If the
X-Evolution-PostTo header exists, then treat this message composer
as a PostTo composer rather than a mail composer.
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message_internal):
Set the X-Evolution-PostTo header if that is the mdoe we are in.
svn path=/trunk/; revision=17843
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index f7d4493e76..c26e0e0623 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -785,9 +785,9 @@ e_msg_composer_hdrs_to_message_internal (EMsgComposerHdrs *hdrs, CamelMimeMessage *msg, gboolean redirect) { + EDestination **to_destv, **cc_destv, **bcc_destv; CamelInternetAddress *addr; char *subject, *header; - EDestination **to_destv, **cc_destv, **bcc_destv; g_return_if_fail (E_IS_MSG_COMPOSER_HDRS (hdrs)); g_return_if_fail (CAMEL_IS_MIME_MESSAGE (msg)); @@ -825,6 +825,12 @@ e_msg_composer_hdrs_to_message_internal (EMsgComposerHdrs *hdrs, e_destination_freev (cc_destv); e_destination_freev (bcc_destv); } + + if (hdrs->visible_mask & E_MSG_COMPOSER_VISIBLE_POSTTO) { + header = e_msg_composer_hdrs_get_post_to (hdrs); + camel_medium_set_header (CAMEL_MEDIUM (msg), "X-Evolution-PostTo", header); + g_free (header); + } } |