Sieve scripting, delete all mails older than...
I'm playing with sieve, it is a powerful tool.
I have made a lot of script that automatically mark as read, move in folder, reply to some sender, ecc ecc…
Now I need a script that delete all emails older than 7 days in a specific folder.
Share you scripting if skills
1 Reply
It is not possible to do this with sieve since sieve process the email while it arrives not after.
better do it in a cron job with this
> doveadm expunge -u
4w means 4 weeks.