diff --git a/server/controllers/system/email-polling.php b/server/controllers/system/email-polling.php index f511e360..872924f7 100755 --- a/server/controllers/system/email-polling.php +++ b/server/controllers/system/email-polling.php @@ -147,7 +147,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();