Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv27754/src/mail

Modified Files:
        MailFolder.cpp 
Log Message:
cc to the addresses which were cc'ed to in the original message instead of replying to 
them when doing "reply to all"

Index: MailFolder.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolder.cpp,v
retrieving revision 1.272
retrieving revision 1.273
diff -b -u -2 -r1.272 -r1.273
--- MailFolder.cpp      22 Feb 2002 21:26:20 -0000      1.272
+++ MailFolder.cpp      5 Mar 2002 17:32:05 -0000       1.273
@@ -857,5 +857,8 @@
    }
 
-   msg->GetAddresses(MAT_CC, otherAddresses);
+   wxArrayString ccAddresses;
+   msg->GetAddresses(MAT_CC, ccAddresses);
+
+   WX_APPEND_ARRAY(otherAddresses, ccAddresses);
 
    // for messages from oneself we already used the "To" recipients above
@@ -967,4 +970,6 @@
       }
 
+      String address = uniqueAddresses[n];
+
       // what we do with this address depends on the kind of reply
       Composer::RecipientType rcptType;
@@ -983,5 +988,10 @@
          case MailFolder::REPLY_ALL:
             // reply to everyone and their dog
-            rcptType = Composer::Recipient_To;
+            //
+            // but if the dog was only cc'ed, we should keep cc'ing it
+            rcptType =
+               Message::FindAddress(ccAddresses, address) == wxNOT_FOUND
+                  ? Composer::Recipient_To
+                  : Composer::Recipient_Cc;
             break;
 


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to