Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv5365/src/gui

Modified Files:
        wxComposeView.cpp 
Log Message:
don't lose Fcc value when resuming/postponing message composition

Index: wxComposeView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxComposeView.cpp,v
retrieving revision 1.336
retrieving revision 1.337
diff -b -u -2 -r1.336 -r1.337
--- wxComposeView.cpp   12 Jul 2003 18:57:43 -0000      1.336
+++ wxComposeView.cpp   13 Jul 2003 22:58:48 -0000      1.337
@@ -1352,4 +1352,13 @@
       else if ( name == "BCC" )
          cv->AddBcc(value);
+      else if ( name == "FCC" )
+      {
+         // if we have any FCC recipients, they should replace the default ones
+         // instead of being appended to them as then the default recipients
+         // would magically reappear after postponing a message and resuming it
+         cv->AddFcc(_T("none"));
+
+         cv->AddFcc(value);
+      }
       else if ( ignoredHeaders.Index(name) == wxNOT_FOUND )
       {
@@ -4121,7 +4130,8 @@
    {
       wxLogError(_("Failed to create the message to save."));
+
+      return NULL;
    }
-   else
-   {
+
       // mark this message as our draft (the value doesn't matter)
       msg->AddHeaderEntry(HEADER_IS_DRAFT, "Yes");
@@ -4148,5 +4158,7 @@
 
       msg->AddHeaderEntry(HEADER_GEOMETRY, value);
-   }
+
+   // also save the Fcc header contents because it's not a "real" header
+   msg->AddHeaderEntry("FCC", GetRecipients(Recipient_Fcc));
 
    return msg;



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to