Purge Trash automaticaly.

This commit is contained in:
yohan 2023-10-22 19:16:38 +02:00
parent d6f4f5f45a
commit 6da62f1120

View File

@ -1,4 +1,8 @@
#!/bin/bash #!/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.phoronix savedbefore 60d
doveadm expunge -u admin mailbox Feeds.hardwarefr savedbefore 60d doveadm expunge -u admin mailbox Feeds.hardwarefr savedbefore 60d
doveadm expunge -u admin mailbox Feeds.pcinpact_articles savedbefore 60d doveadm expunge -u admin mailbox Feeds.pcinpact_articles savedbefore 60d