Revision: 7438
http://mahogany.svn.sourceforge.net/mahogany/?rev=7438&view=rev
Author: vadz
Date: 2008-05-01 16:07:22 -0700 (Thu, 01 May 2008)
Log Message:
-----------
moved code for bouncing messages into SendMessage::Bounce()
Modified Paths:
--------------
trunk/M/src/gui/wxMsgCmdProc.cpp
Modified: trunk/M/src/gui/wxMsgCmdProc.cpp
===================================================================
--- trunk/M/src/gui/wxMsgCmdProc.cpp 2008-05-01 23:06:14 UTC (rev 7437)
+++ trunk/M/src/gui/wxMsgCmdProc.cpp 2008-05-01 23:07:22 UTC (rev 7438)
@@ -1086,31 +1086,11 @@
continue;
}
- SendMessage_obj sendMsg(SendMessage::CreateResent
- (
- GetProfile(),
- msg,
- GetFrame()
- ));
- if ( !sendMsg )
+ if ( SendMessage::Bounce(address, GetProfile(), *msg, GetFrame()) )
{
- ERRORMESSAGE((_("Failed to create a new message.")));
- continue;
- }
-
- sendMsg->SetAddresses(address);
-
- // there is no need to store bounced messages in "sent mail" folder
- sendMsg->SetFcc("");
-
- if ( !sendMsg->SendOrQueue() )
- {
- ERRORMESSAGE((_("Failed to bounce the message.")));
- }
- else
- {
countOk++;
}
+ //else: error message already given
msg->DecRef();
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates