diff --git a/webui/controller/message/notspam.php b/webui/controller/message/notspam.php index 33fe581c..03fc2be8 100644 --- a/webui/controller/message/notspam.php +++ b/webui/controller/message/notspam.php @@ -33,7 +33,9 @@ class ControllerMessageNotSpam extends Controller { AUDIT(ACTION_NOT_SPAM, '', '', $this->data['id'], ''); - $this->model_search_message->not_spam($this->data['id']); + if(DEFAULT_RETENTION > 30) { + $this->model_search_message->not_spam($this->data['id']); + } }