On Wed, 19 Feb 2020, Philip Colmer wrote:
/usr/bin/doveadm flags add -A '\Deleted' SEEN SENTBEFORE 12w && /usr/bin/doveadm expunge -A DELETED MAILBOX '*'
This may have been overtaken by Sami autoexpunge solution, but you can roll two I/O intensive operations into one -- there's no point setting flags on a message you'll expunge. /usr/bin/doveadm expunge -A DELETED OR \( SEEN SENTBEFORE 12w \) Joseph Tam <jtam.h...@gmail.com>