[evolution] Reply-To header value lost on Draft message reopen
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Reply-To header value lost on Draft message reopen
- Date: Thu, 27 Jul 2017 10:21:22 +0000 (UTC)
commit 450611a1e3e791c6ed3c9d080a3aa5f992aec3cd
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 27 12:19:45 2017 +0200
Reply-To header value lost on Draft message reopen
This had been reported downstream at:
https://bugzilla.redhat.com/show_bug.cgi?id=1475369
src/composer/e-msg-composer.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/composer/e-msg-composer.c b/src/composer/e-msg-composer.c
index 62b7de1..974c280 100644
--- a/src/composer/e-msg-composer.c
+++ b/src/composer/e-msg-composer.c
@@ -3672,6 +3672,17 @@ e_msg_composer_setup_with_message (EMsgComposer *composer,
g_strfreev (flags);
}
+ if (is_message_from_draft || (
+ camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Identity") &&
+ camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Transport"))) {
+ const gchar *reply_to;
+
+ reply_to = camel_medium_get_header (CAMEL_MEDIUM (message), "Reply-To");
+
+ if (reply_to)
+ e_composer_header_table_set_reply_to (table, reply_to);
+ }
+
/* Remove any other X-Evolution-* headers that may have been set */
camel_name_value_array_free (mail_tool_remove_xevolution_headers (message));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]