mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
* Mail: fix deleting mails from draft folder does not respect "move to trash" in delete message preference
This commit is contained in:
parent
66bb77b37c
commit
9e1d9e143e
@ -3923,8 +3923,7 @@ class Mail
|
|||||||
$trashFolder = $this->getTrashFolder();
|
$trashFolder = $this->getTrashFolder();
|
||||||
$draftFolder = $this->getDraftFolder(); //$GLOBALS['egw_info']['user']['preferences']['mail']['draftFolder'];
|
$draftFolder = $this->getDraftFolder(); //$GLOBALS['egw_info']['user']['preferences']['mail']['draftFolder'];
|
||||||
$templateFolder = $this->getTemplateFolder(); //$GLOBALS['egw_info']['user']['preferences']['mail']['templateFolder'];
|
$templateFolder = $this->getTemplateFolder(); //$GLOBALS['egw_info']['user']['preferences']['mail']['templateFolder'];
|
||||||
if((strtolower($_folder) == strtolower($trashFolder) && $deleteOptions == "move_to_trash") ||
|
if((strtolower($_folder) == strtolower($trashFolder) && $deleteOptions == "move_to_trash")) {
|
||||||
(strtolower($_folder) == strtolower($draftFolder))) {
|
|
||||||
$deleteOptions = "remove_immediately";
|
$deleteOptions = "remove_immediately";
|
||||||
}
|
}
|
||||||
if($this->icServer->getCurrentMailbox() != $_folder) {
|
if($this->icServer->getCurrentMailbox() != $_folder) {
|
||||||
|
Loading…
Reference in New Issue
Block a user