DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
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