freescout
freescout copied to clipboard
Delete emails from mail server when deleting conversations
When deleting messages (and emptying the trashcan) then the mails are seemingly gone. Looking at the mailserver though the mails are still there which is wrong - both from a security and privacy protection point of view as well as when considering the mailbox size.
So when deleting a mail and emptying the trash we should be able to rely that the mail is in fact gone.
So we just noticed that the mails are pulled from the server and nothing else. I suggest an option per Mailbox where we choose to delete pulled mails or not.
A quickfix here is adding the following line in: app/Console/Commands/FetchEmails.php From around line 550: (Added line is $message->delete();)
if ($new_thread) {
$message->setFlag(['Seen']);
$this->line('['.date('Y-m-d H:i:s').'] Thread successfully created: '.$new_thread->id);
// If it was a bounce message, save bounce data.
if ($message_from_customer && $is_bounce) {
$this->saveBounceData($new_thread, $bounced_message_id, $from);
}
// ADD THIS LINE TO DELETE THE INCOMING MAILS AFTER THEY WERE SUCCESSFULLY FETCHED
$message->delete();
} else {
$this->logError('Error occured processing message');
}
The "Also delete from mail server" checkbox should be added to the "Delete Conversations" dialog.
I think It should rather be a basic setting - not for someone who is deleting a conversation.
I suggest a switch in the central settings to either: "Cleanup all imported mails from mailboxes after: " xxx "days". or "delete mails from mailbox immediately after importing".
If this option was to come it should be a part of the Mailbox Settings component and either have a scheduled timer to delete messages after (x) days, force a manual expunge, or do it upon downloading the message immediately from the server.
That's basically what I suggested above?
Pretty much the same, yet my take on it was leave it on the mailbox as it is happening right now ,and make the option per mailbox not per freescout instance.
Ah yes sorry, that's also what I meant.
Should be an option, not default. I keep my mailbox filled as archive for if i ever stop with Freescout i still have the emails.
This would be a great function, since we are using freescout with a Mailbox that is limited - at the moment we are deleting Mails every month or so manually from the mailbox.
Is it something that could be implanted anytime soon ? My hosting only provide 5Gb of mail storage, so I delete all the advertising mail or parcel tracking etc… I also agree with @tiredofit that it should be a Mailbox setting, not a Freescout main settings.
Implemented in https://freescout.net/module/gdpr/
What was implemented in the GDPR module? I only see an option to delete messages from the mail server when the customer is deleted.
AFAIK, this ticket was about removing messages from the mail server when they're deleted from the Freescout trash (maybe ask at the moment), or having the option to delete from the server in POP3 mode, immediately or after some days (as an option on the fetching emails screen of each mailbox).
As we are today, whenever I empty the trash, if the emails still exist on the server, they're pulled again as new conversations, which makes no sense whatsoever.
See https://freescout.net/module/imap-move/
You mentioned GDPR :-)