Bug 871636 - Reopening saved draft stubbornly re-adds deleted automatic CC or BCC recipients. r=standard8
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Tue, 05 Nov 2013 21:59:42 +0200
changeset 16867 ab678895a5a5d4c8e0f30408815e648e99cf4baa
parent 16866 752e81dfb822ef5f2707d1ccc834bd9476a19db9
child 16868 49cccc8fa53c4c415aba5b85af0c1c2a17369441
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstandard8
bugs871636
Bug 871636 - Reopening saved draft stubbornly re-adds deleted automatic CC or BCC recipients. r=standard8
mailnews/compose/src/nsMsgCompose.cpp
--- a/mailnews/compose/src/nsMsgCompose.cpp
+++ b/mailnews/compose/src/nsMsgCompose.cpp
@@ -1675,17 +1675,17 @@ nsresult nsMsgCompose::CreateMessage(con
     else
       return NS_ERROR_OUT_OF_MEMORY;
   }
 
   nsCOMPtr<nsIMsgHeaderParser> parser =
     do_GetService(NS_MAILNEWS_MIME_HEADER_PARSER_CONTRACTID, &rv);
   NS_ENSURE_SUCCESS(rv, rv);
 
-  if (m_identity)
+  if (m_identity && mType != nsIMsgCompType::Draft)
   {
     // Setup reply-to field.
     nsCString replyTo;
     m_identity->GetReplyTo(replyTo);
     if (!replyTo.IsEmpty())
     {
       nsCString resultStr;
       rv = parser->RemoveDuplicateAddresses(nsDependentCString(m_compFields->GetReplyTo()),