diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-07-19 01:55:01 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-07-19 01:55:01 +0000 |
commit | 61b8c165b12e773739278fcdb7b1235a8d189992 (patch) | |
tree | 744a8ac3d5cceef21376e02bd43b058987ddd8cf /etc | |
parent | 5cbfb7729af3f2ca03385257275a10c38d11ddac (diff) |
dovecot auto delete old emails in Junk and Trash mailbox
Diffstat (limited to 'etc')
-rw-r--r-- | etc/dovecot/conf.d/15-mailboxes.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/dovecot/conf.d/15-mailboxes.conf b/etc/dovecot/conf.d/15-mailboxes.conf index 95f99394..409c791c 100644 --- a/etc/dovecot/conf.d/15-mailboxes.conf +++ b/etc/dovecot/conf.d/15-mailboxes.conf @@ -54,10 +54,14 @@ namespace inbox { mailbox Junk { special_use = \Junk auto = subscribe + # https://doc.dovecot.org/configuration_manual/namespace/#core_setting-namespace/mailbox/autoexpunge + # https://github.com/LukeSmithxyz/emailwiz/blob/558c4de108a472eca70abca20888de2981ff17ca/emailwiz.sh#L259 + autoexpunge = 40d } mailbox Trash { special_use = \Trash auto = subscribe + autoexpunge = 40d } # For \Sent mailboxes there are two widely used names. We'll mark both of |