|
|
|
|
@ -656,8 +656,11 @@ void ActionScheduler::moveMessage() |
|
|
|
|
if (!orgMsg || !orgMsg->parent()) { |
|
|
|
|
// Original message is gone, no point filtering it anymore
|
|
|
|
|
mSrcFolder->removeMsg( mSrcFolder->find( msg ) ); |
|
|
|
|
kdDebug(5006) << "The original serial number is missing. " |
|
|
|
|
<< "Cannot complete the filtering." << endl; |
|
|
|
|
mExecutingLock = false; |
|
|
|
|
processMessageTimer->start( 0, true ); |
|
|
|
|
return; |
|
|
|
|
} else { |
|
|
|
|
if (!folder) // no filter folder specified leave in current place
|
|
|
|
|
folder = orgMsg->parent(); |
|
|
|
|
@ -669,7 +672,7 @@ void ActionScheduler::moveMessage() |
|
|
|
|
mSrcFolder->addMsg( msg ); |
|
|
|
|
mIgnore = false; |
|
|
|
|
|
|
|
|
|
if (msg && kmkernel->folderIsTrash( folder )) |
|
|
|
|
if (msg && folder && kmkernel->folderIsTrash( folder )) |
|
|
|
|
KMFilterAction::sendMDN( msg, KMime::MDN::Deleted ); |
|
|
|
|
|
|
|
|
|
timeOutTime = QTime::currentTime(); |
|
|
|
|
@ -732,8 +735,6 @@ void ActionScheduler::moveMessageFinished( KMCommand *command ) |
|
|
|
|
|
|
|
|
|
void ActionScheduler::copyMessageFinished( KMCommand *command ) |
|
|
|
|
{ |
|
|
|
|
// FIXME remove the debug output
|
|
|
|
|
kdDebug(5006) << "##### ActionScheduler::copyMessageFinished( KMCommand *command )" << endl; |
|
|
|
|
if ( command->result() != KMCommand::OK ) |
|
|
|
|
actionMessage( KMFilterAction::ErrorButGoOn ); |
|
|
|
|
else
|
|
|
|
|
|