From: Dirk-Jan C. Binnema Date: Thu, 20 Dec 2007 17:21:25 +0000 (+0000) Subject: * don't include Cc: with reply, only with replyall X-Git-Tag: git_migration_finished~1887 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=fc79b71cf7a7520bcf0945eeb89001346e30d6f8 * don't include Cc: with reply, only with replyall pmo-trunk-r3952 --- diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index dfb6d13..c2adec4 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -777,7 +777,7 @@ modest_tny_msg_create_reply_msg (TnyMsg *msg, { TnyMsg *new_msg = NULL; TnyHeader *new_header; - gchar *new_to, *new_cc = NULL; + gchar *new_to = NULL; TnyList *parts = NULL; GList *attachments_list = NULL; @@ -814,10 +814,13 @@ modest_tny_msg_create_reply_msg (TnyMsg *msg, tny_header_set_to (new_header, new_to); g_free (new_to); } - new_cc = get_new_cc (header, from); - if (new_cc) { - tny_header_set_cc (new_header, new_cc); - g_free (new_cc); + + if (reply_mode == MODEST_TNY_MSG_REPLY_MODE_ALL) { + gchar *new_cc = get_new_cc (header, from); + if (new_cc) { + tny_header_set_cc (new_header, new_cc); + g_free (new_cc); + } } /* Clean */