aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-hdrs.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r--composer/e-msg-composer-hdrs.c8
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);
+ }
}