From b505270f03e14ae2b48378368775271af34831bb Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Wed, 10 Jun 2009 12:36:33 +0200 Subject: [PATCH] Use the TnyHeader from the origina TnyMsg to get data when doing a reply all, instead of using the TnyHeader from the summary of the folder. It's safer to do this because the summary could lack some data --- src/modest-ui-actions.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 048749d..88a7745 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -1744,20 +1744,27 @@ reply_forward_cb (ModestMailOperation *mail_op, /* Create reply mail */ switch (rf_helper->action) { + /* Use the msg_header to ensure that we have all the + information. The summary can lack some data */ + TnyHeader *msg_header; case ACTION_REPLY: + msg_header = tny_msg_get_header (msg); new_msg = - modest_tny_msg_create_reply_msg (msg, header, from, + modest_tny_msg_create_reply_msg (msg, msg_header, from, (use_signature) ? signature : NULL, rf_helper->reply_forward_type, MODEST_TNY_MSG_REPLY_MODE_SENDER); + g_object_unref (msg_header); break; case ACTION_REPLY_TO_ALL: + msg_header = tny_msg_get_header (msg); new_msg = - modest_tny_msg_create_reply_msg (msg, header, from, + modest_tny_msg_create_reply_msg (msg, msg_header, from, (use_signature) ? signature : NULL, rf_helper->reply_forward_type, MODEST_TNY_MSG_REPLY_MODE_ALL); edit_type = MODEST_EDIT_TYPE_REPLY; + g_object_unref (msg_header); break; case ACTION_FORWARD: new_msg = -- 1.7.9.5