| Linode Forum https://forum.linode.com/ |
|
| Sieve scripting, delete all mails older than... https://forum.linode.com/viewtopic.php?f=11&t=10514 |
Page 1 of 1 |
| Author: | sblantipodi [ Mon Oct 14, 2013 2:39 pm ] |
| Post subject: | Sieve scripting, delete all mails older than... |
As title, 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 |
|
| Author: | sblantipodi [ Thu Oct 17, 2013 10:36 am ] |
| Post subject: | Re: Sieve scripting, delete all mails older than... |
I answer to myself. 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 Quote: doveadm expunge -u myusername@mydomain.xxx mailbox myImapFolder savedbefore 4w 4w means 4 weeks. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|