Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Oct 14, 2013 2:39 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
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 :mrgreen:


Top
   
PostPosted: Thu Oct 17, 2013 10:36 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group