From c70f7d67ef7c311ff448afcde83811e8baa50dd5 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 20 Sep 2018 16:07:36 +0200 Subject: [PATCH] Draft message suppose to be removed immediately after sent --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index 15eaeb5e3f..6da3ca092a 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -3319,7 +3319,7 @@ class mail_compose !(($_formData['to_infolog'] == 'on' || $_formData['to_tracker'] == 'on' || $_formData['to_calendar'] == 'on') && $this->sessionData['attachments'])) { //error_log(__METHOD__.__LINE__."#".$this->sessionData['uid'].'#'.$this->sessionData['messageFolder']); - $mail_bo->deleteMessages(array($this->sessionData['uid']),$this->sessionData['messageFolder']); + $mail_bo->deleteMessages(array($this->sessionData['uid']),$this->sessionData['messageFolder'], 'remove_immediately'); } } catch (Api\Exception $e)