* Mail: fix deleting mails from draft folder does not respect "move to trash" in delete message preference

This commit is contained in:
Hadi Nategh 2018-09-20 15:25:11 +02:00
parent 66bb77b37c
commit 9e1d9e143e

View File

@ -3923,8 +3923,7 @@ class Mail
$trashFolder = $this->getTrashFolder();
$draftFolder = $this->getDraftFolder(); //$GLOBALS['egw_info']['user']['preferences']['mail']['draftFolder'];
$templateFolder = $this->getTemplateFolder(); //$GLOBALS['egw_info']['user']['preferences']['mail']['templateFolder'];
if((strtolower($_folder) == strtolower($trashFolder) && $deleteOptions == "move_to_trash") ||
(strtolower($_folder) == strtolower($draftFolder))) {
if((strtolower($_folder) == strtolower($trashFolder) && $deleteOptions == "move_to_trash")) {
$deleteOptions = "remove_immediately";
}
if($this->icServer->getCurrentMailbox() != $_folder) {