forked from extern/egroupware
avoid problems regarding the deletion of messages from Trash, when configured Trash Folder does not match current folder regarding upper/lower case
This commit is contained in:
parent
7f1d9043b2
commit
2795360ef3
@ -3062,7 +3062,7 @@ class emailadmin_imapbase
|
|||||||
|
|
||||||
$this->icServer->openMailbox($folderName);
|
$this->icServer->openMailbox($folderName);
|
||||||
|
|
||||||
if($folderName == $trashFolder && $deleteOptions == "move_to_trash") {
|
if(strtolower($folderName) == strtolower($trashFolder) && $deleteOptions == "move_to_trash") {
|
||||||
$this->deleteMessages('all',$folderName,'remove_immediately');
|
$this->deleteMessages('all',$folderName,'remove_immediately');
|
||||||
} else {
|
} else {
|
||||||
$this->icServer->expunge($folderName);
|
$this->icServer->expunge($folderName);
|
||||||
@ -3105,8 +3105,8 @@ class emailadmin_imapbase
|
|||||||
$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(($_folder == $trashFolder && $deleteOptions == "move_to_trash") ||
|
if((strtolower($_folder) == strtolower($trashFolder) && $deleteOptions == "move_to_trash") ||
|
||||||
($_folder == $draftFolder)) {
|
(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