Is there a way to automatically expurge or move messages from a specific folder to another folder after "X" days? Where "X" specifies the amount of days that messages in folder will be kept. Thanks !
On Qui, 17 Set 2009, Darvin Denmian wrote:> Is there a way to automatically expurge or move messages from a > specific folder to another folder after "X" days? > > Where "X" specifies the amount of days that messages in folder will be kept.If it's maildir, you can use find(1) to search the messages and mv(1) them to another folder. The next time the folders are opened dovecot will update the indexes. -- Eduardo M KALINOWSKI eduardo at kalinowski.com.br
> Is there a way to automatically expurge or move messages from a > specific folder to another folder after "X" days?I use a daily cron job for this. It runs a script that deletes messages more than 6 months old from the Junk folder. If you can do this directly in Dovecot, then I guess that's better, because it will keep the folder indexes up to date. But I move messages around outside of Dovecot and it works fine. Dovecot updates the indexes when I view the folder, and there's not much delay. A.
On Sep 17, 2009, at 7:28 PM, Darvin Denmian wrote:> Is there a way to automatically expurge or move messages from a > specific folder to another folder after "X" days?http://wiki.dovecot.org/Plugins/Expire
Timo, I know this plugin, but instead of removing the messages I need to move them to a specific folder,can it do this? Thanks. On Thu, Sep 17, 2009 at 4:11 PM, Timo Sirainen <tss at iki.fi> wrote:> On Sep 17, 2009, at 7:28 PM, Darvin Denmian wrote: > >> Is there a way to automatically expurge or move messages from a >> specific folder to another folder after "X" days? > > http://wiki.dovecot.org/Plugins/Expire > >