User Tools

Site Tools


ubuntu:email:delete_emails_that_are_marked_for_deleting_directly

Ubuntu - Email - Delete emails that are marked for deleting directly

find current_maildir_location/ -type f -name '*:2,*T*' -mtime +7 -exec rm -f "'{}'" ';'

This is helpful if the users' email client hides deleted messages instead of permanently deleting them.

NOTE: The maildir format has a “T” flag in the msg file name, which tells that msg is Trashed.

ubuntu/email/delete_emails_that_are_marked_for_deleting_directly.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki