Update of /cvsroot/mahogany/M/src/gui
In directory usw-pr-cvs1:/tmp/cvs-serv12518/src/gui
Modified Files:
wxMsgCmdProc.cpp
Log Message:
finally got rid of bool parameter in MF::DeleteMessages(); added another parameter to
DeleteOrTrashMessages() to allow not copy the messages to trash folder (useful when
deleting messages as part of moving them)
Index: wxMsgCmdProc.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMsgCmdProc.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -b -u -2 -r1.31 -r1.32
--- wxMsgCmdProc.cpp 2 Sep 2002 16:03:37 -0000 1.31
+++ wxMsgCmdProc.cpp 5 Sep 2002 23:45:16 -0000 1.32
@@ -1168,5 +1168,10 @@
new AsyncStatusHandler(this, _("Deleting messages..."));
- status->Monitor(m_asmf->DeleteOrTrashMessages(&selections, this),
+ status->Monitor(m_asmf->DeleteOrTrashMessages
+ (
+ &selections,
+ MailFolder::DELETE_ALLOW_TRASH,
+ this
+ ),
_("Failed to delete messages"));
}
@@ -1681,6 +1686,13 @@
// delete right now
- // true => expunge as well
- Ticket t = m_asmf->DeleteMessages(seq, true, this);
+ // don't copy the messages to the trash, they had been
+ // already copied somewhere
+ Ticket t = m_asmf->DeleteOrTrashMessages
+ (
+ seq,
+ MailFolder::DELETE_NO_TRASH,
+ this
+ );
+
if ( t != ILLEGAL_TICKET )
{
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates