Commit 3ae31a03 authored by mku's avatar mku

ZP-165 #comment Sent emails not saved in Sent Items folder (IMAP) #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1459 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 3a053642
......@@ -454,7 +454,7 @@ class BackendIMAP extends BackendDiff {
// email sent?
if (!$send)
throw new StatusException(sprintf("BackendIMAP->SendMail(): The email could not be sent. Last IMAP-error: ". imap_last_error()), SYNC_COMMONSTATUS_MAILSUBMISSIONFAILED);
throw new StatusException(sprintf("BackendIMAP->SendMail(): The email could not be sent. Last IMAP-error: %s", imap_last_error()), SYNC_COMMONSTATUS_MAILSUBMISSIONFAILED);
// add message to the sent folder
// build complete headers
......@@ -492,9 +492,11 @@ class BackendIMAP extends BackendDiff {
}
}
// unset mimedecoder - free memory
unset($mobj);
return ($send && $asf);
if (!$asf) {
ZLog::Write(LOGLEVEL_ERROR, "BackendIMAP->SendMail(): The email could not be saved to Sent Items folder. Check your configuration.");
}
return $send;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment