cronjob hack to expunge deleted mails of USERNAME

Martin Johannes Dauser mdauser at cs.sbg.ac.at
Tue Oct 9 12:18:12 EEST 2018


Well, some dirty cronjob could periodically expunge all emails marked
as DELETED from a specific user. You would need to exchange USERNAME
with the real username in this little bash script. This should work,
use at your own risk. (^.~)

#!/bin/bash
doveadm mailbox list -u USERNAME | while read -r i 
do
    doveadm expunge -u USERNAME mailbox $i DELETED
done


Finding the real issue would be best of course.

Martin 


More information about the dovecot mailing list