Update of /cvsroot/mahogany/M/src/mail
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13500/src/mail

Modified Files:
        MailFolder.cpp 
Log Message:
When explicitely asking for 'Reply to sender', the sender's address
was not added to the recipient list, leading to a blank To field.

Index: MailFolder.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolder.cpp,v
retrieving revision 1.311
retrieving revision 1.312
diff -b -u -2 -r1.311 -r1.312
--- MailFolder.cpp      12 Jul 2004 20:53:21 -0000      1.311
+++ MailFolder.cpp      16 Jul 2004 10:31:23 -0000      1.312
@@ -666,5 +666,17 @@
    // additional option to handle this ("add unused addresses to composer")?
    if ( replyKind == MailFolder::REPLY_SENDER && explicitReplyKind )
+   {
+      // add all recipients in the composer in the reverse order -- so
+      // that they appear there as we want them
+      n = rcptAddresses.GetCount();
+      CHECK_RET( rcptTypes.GetCount() == n, _T("logic error in InitRecipients") );
+
+      while ( n-- )
+      {
+         cv->AddRecipients(rcptAddresses[n], (Composer::RecipientType)rcptTypes[n]);
+      }
+
       return;
+   }
 
    // now get all other addresses



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to