Commit 2a7325b6 authored by Karl Denninger's avatar Karl Denninger

ZP-1279 Imap backend delete change if not in trash (move to trash). Released...

ZP-1279 Imap backend delete change if not in trash (move to trash). Released under the Affero GNU General Public License (AGPL) version 3.
parent d788cf91
...@@ -1542,6 +1542,10 @@ class BackendIMAP extends BackendDiff implements ISearchProvider { ...@@ -1542,6 +1542,10 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->DeleteMessage('%s','%s')", $folderid, $id)); ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->DeleteMessage('%s','%s')", $folderid, $id));
$folderImapid = $this->getImapIdFromFolderId($folderid); $folderImapid = $this->getImapIdFromFolderId($folderid);
if (strcasecmp($folderImapid, $this->create_name_folder(IMAP_FOLDER_TRASH)) != 0) {
$s1 = MoveMessage($folderid, $id, $this->create_name_folder(IMAP_FOLDER_TRASH), $contentparameters);
return($s1);
}
$this->imap_reopen_folder($folderImapid); $this->imap_reopen_folder($folderImapid);
if ($this->imap_inside_cutoffdate(Utils::GetCutOffDate($contentparameters->GetFilterType()), $id)) { if ($this->imap_inside_cutoffdate(Utils::GetCutOffDate($contentparameters->GetFilterType()), $id)) {
......
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