Find Old Emails In Trash
Join the DZone community and get the full member experience.
Join For Free// 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
Opinions expressed by DZone contributors are their own.
Comments