Draft message suppose to be removed immediately after sent

This commit is contained in:
Hadi Nategh 2018-09-20 16:07:36 +02:00
parent f7d09e9ec0
commit bdd81ceba0

View File

@ -3332,7 +3332,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)