Over a million developers have joined DZone.

Find Old Emails In Trash

·
// oneliner to find all old emails (deleted more than 30 days ago) in Trash or Junk folders for all virtual users of a particular domain in Dovecot.


find /home/vmail/domains/qvox.org/* -regex '.*/\.\(Trash\|Junk\)\(/.*\)?\/\(cur\|new\)/.*' -type f -ctime +30
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}