Diffstat (limited to 'noncore/net/mail/libmailwrapper/smtpwrapper.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/smtpwrapper.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/noncore/net/mail/libmailwrapper/smtpwrapper.cpp b/noncore/net/mail/libmailwrapper/smtpwrapper.cpp index 770e2b8..a7e4837 100644 --- a/noncore/net/mail/libmailwrapper/smtpwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/smtpwrapper.cpp @@ -697,5 +697,8 @@ int SMTPwrapper::sendQueuedMail(MBOXwrapper*wrap,SMTPaccount*smtp,RecMail*which) /* this is a special fun */ -void SMTPwrapper::flushOutbox(SMTPaccount*smtp) +bool SMTPwrapper::flushOutbox(SMTPaccount*smtp) { - if (!smtp) return; + bool returnValue = true; + + if (!smtp) return false; + QString localfolders = (QString) getenv( "HOME" ) + QString("/Applications/opiemail/localmail/"); @@ -704,3 +707,3 @@ void SMTPwrapper::flushOutbox(SMTPaccount*smtp) qDebug("memory error"); - return; + return false; } @@ -712,3 +715,3 @@ void SMTPwrapper::flushOutbox(SMTPaccount*smtp) delete wrap; - return; + return false; } @@ -724,2 +727,4 @@ void SMTPwrapper::flushOutbox(SMTPaccount*smtp) tr("Error sending queued mail - breaking")); + + returnValue = false; break; @@ -736,2 +741,4 @@ void SMTPwrapper::flushOutbox(SMTPaccount*smtp) delete wrap; + return returnValue; + } |