From 2948c03213b989ce3b069d6731f57274a6e93dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeffrey=20Bo=CC=88hm?= Date: Thu, 29 Jan 2026 00:41:55 +0100 Subject: [PATCH] feat(mda): enable trash plugin Normally, a quota exceeded error is returned if saving/copying a message would bring the user over quota. With the trash plugin, the oldest messages are instead expunged from the specified mailboxes until the message can be saved. If the new message is large enough that it wouldn't fit even if all messages from configured mailboxes were expunged, then no messages are expunged and the user receives a "Quota exceeded" error. --- target/mda/rootfs/etc/dovecot/conf.d/15-mailboxes.conf | 2 ++ target/mda/rootfs/etc/dovecot/conf.d/90-quota.conf | 1 + 2 files changed, 3 insertions(+) diff --git a/target/mda/rootfs/etc/dovecot/conf.d/15-mailboxes.conf b/target/mda/rootfs/etc/dovecot/conf.d/15-mailboxes.conf index 9b615ec7..b3316ec4 100644 --- a/target/mda/rootfs/etc/dovecot/conf.d/15-mailboxes.conf +++ b/target/mda/rootfs/etc/dovecot/conf.d/15-mailboxes.conf @@ -8,12 +8,14 @@ namespace inbox { auto = subscribe special_use = \Junk autoexpunge = 30d + trash_priority = 1 } mailbox Trash { auto = subscribe special_use = \Trash autoexpunge = 30d + trash_priority = 2 } mailbox Sent { diff --git a/target/mda/rootfs/etc/dovecot/conf.d/90-quota.conf b/target/mda/rootfs/etc/dovecot/conf.d/90-quota.conf index 5008e344..b79bc4c1 100644 --- a/target/mda/rootfs/etc/dovecot/conf.d/90-quota.conf +++ b/target/mda/rootfs/etc/dovecot/conf.d/90-quota.conf @@ -1,5 +1,6 @@ mail_plugins { quota = yes + trash = yes } protocol imap {