From cd768393ecf8f04204f964a6c8541a11ee26d903 Mon Sep 17 00:00:00 2001 From: J0WI Date: Sat, 5 Sep 2020 00:06:59 +0000 Subject: [PATCH] Move mail to trash instead of deleting it --- server/controllers/system/email-polling.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/system/email-polling.php b/server/controllers/system/email-polling.php index 9b45137c..aacb7e9c 100755 --- a/server/controllers/system/email-polling.php +++ b/server/controllers/system/email-polling.php @@ -145,7 +145,7 @@ class EmailPollingController extends Controller { $mailsIds = $this->mailbox->searchMailbox('ALL'); foreach($mailsIds as $mailId) { - $this->mailbox->deleteMail($mailId); + $this->mailbox->moveMail($mailId, 'INBOX.Trash'); } $this->mailbox->expungeDeletedMails();