doveadm expunge fails on overquota: fallback to old method

Version 1.61.4

Bugfix
Finished

If a User is over quota and has passed their grace period, the doveadm expunge call will fail and the emails will not be removed. If the User is over quota, but within the grace, the emails will still be removed, but the index re-write will still fail. The solution is not the error, and use the old purge method as a fallback in either the above events. ================= ERROR Email::doveadm_expunge: running: /usr/bin/doveadm expunge -u 'user@email.com' mailbox 'INBOX' all dovecadmn expunge returned an error: doveadm(user@email.com): Error: Mailbox INBOX: write(/home/fred/imap/email.com/user/Maildir/dovecot-uidlist.tmp) failed: Disc quota exceeded doveadm(user@email.com): Error: Syncing mailbox INBOX failed: Mailbox INBOX: write(/home/fred/imap/email.com/user/Maildir/dovecot-uidlist.tmp) failed: Disc quota exceeded ---- Compile time: Sep 15 2020 at 20:41:03 T29043

Interested to try DirectAdmin? Get a 30-day Free Trial!