sieve question: archive script

Bron Gondwana brong at
Tue Oct 27 07:32:40 EDT 2009

On Tue, Oct 27, 2009 at 04:37:56PM +0800, Zhang Weiwu wrote:
> Hello. I could not find a sieve-specific forum so I had to ask here. It
> is in-top because I use cyrus imapd.
> I want to emulate the archive behavior of alpine (or pine) by using
> sieve, is it possible? In short, alpine does this:
>    1. At first of every month, e.g. July, create a new folder called
>       sent-Jun
>    2. Move all emails in "sent" that dates before July to that folder

Sieve only runs during the LMTP phase.  It doesn't move messages.

> My question is, because of the limited time to deliver this, to avoid
> diving into sieve world with no result, may I know in advance with sieve
> language and all its extensions, is this task's client part possible
> using sieve? I would start alternative ways if sieve could not do it,
> e.g. perl + imap protocol library. I prefer sieve if possible.
> P. S. If I do it I'll share the result opensourced.

I'd say go Perl + IMAP.  It's pretty easy.


More information about the Cyrus-devel mailing list