printf("Save Mail File Operation Completed Successfully!\n"); } else { printf("Save Mail File Operation FAILED!\n");
if (NS_SUCCEEDED(aStatus)) { #ifdef NS_DEBUG printf("nsMsgSendLater: Success on the message send operation!\n"); #endif  PRBool    deleteMsgs = PR_TRUE;     NS_WITH_SERVICE(nsIPref, prefs, kPrefCID, &rv); if (NS_SUCCEEDED(rv) && prefs) prefs->GetBoolPref("mail.really_delete_draft", &deleteMsgs);  if (deleteMsgs) { mSendLater->DeleteCurrentMessage();     NS_IF_RELEASE(mSendLater->mEnumerator); mSendLater->mEnumerator = nsnull;  nsresult ret = mSendLater->mMessageFolder->GetMessages(nsnull, &(mSendLater->mEnumerator)); if (NS_FAILED(ret) || (!(mSendLater->mEnumerator))) mSendLater->mEnumerator = nsnull;  }  ++(mSendLater->mTotalSentSuccessfully); } else {  nsMsgDisplayMessageByID(NS_ERROR_SEND_FAILED); }   rv = mSendLater->StartNextMailFileSend(); if (NS_FAILED(rv)) mSendLater->NotifyListenersOnStopSending(rv, nsnull, mSendLater->mTotalSendCount, mSendLater->mTotalSentSuccessfully); NS_RELEASE(mSendLater);
SendOperationListener::OnStopSending(const char *aMsgID, nsresult aStatus, const PRUnichar *aMsg,                                      nsIFileSpec *returnFileSpec){  if (NS_SUCCEEDED(aStatus))  {    printf("Save Mail File Operation Completed Successfully!\n");  }  else  {    printf("Save Mail File Operation FAILED!\n");  }  keepOnRunning = PR_FALSE;  printf("Exit code = [%d]\n", aStatus);  return NS_OK;}