From 6da62f1120380a077ab8592861ef21bc106eb3cc Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 22 Oct 2023 19:16:38 +0200 Subject: [PATCH] Purge Trash automaticaly. --- dovecot_expire.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dovecot_expire.sh b/dovecot_expire.sh index 2c47f51..4c11ac9 100755 --- a/dovecot_expire.sh +++ b/dovecot_expire.sh @@ -1,4 +1,8 @@ #!/bin/bash + +doveadm expunge -u admin mailbox Trash savedbefore 30d +echo `date +"%F %T"` "Trash purged" + doveadm expunge -u admin mailbox Feeds.phoronix savedbefore 60d doveadm expunge -u admin mailbox Feeds.hardwarefr savedbefore 60d doveadm expunge -u admin mailbox Feeds.pcinpact_articles savedbefore 60d