ZP-828 Show last IMAP error on EmptyFolder. Released under the Affero GNU...

ZP-828 Show last IMAP error on EmptyFolder. Released under the Affero GNU General Public License (AGPL) version 3.
parent 0fc881b0
...@@ -583,7 +583,7 @@ class BackendIMAP extends BackendDiff implements ISearchProvider { ...@@ -583,7 +583,7 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
} }
} }
else { else {
throw new StatusException(sprintf("BackendIMAP->EmptyFolder('%s','%s'): Error, imap_delete() failed, the error will show at the logout", $folderid, Utils::PrintAsString($includeSubfolders)), SYNC_ITEMOPERATIONSSTATUS_SERVERERROR); throw new StatusException(sprintf("BackendIMAP->EmptyFolder('%s','%s'): Error, imap_delete() failed; '%s'", $folderid, Utils::PrintAsString($includeSubfolders), @imap_last_error()), SYNC_ITEMOPERATIONSSTATUS_SERVERERROR);
} }
return true; return true;
......
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