Sieve and regex (or sieve for specific folder)

Ken Murchison ken at oceana.com
Fri Aug 27 18:54:46 EDT 2004


Paul Dekkers wrote:
> Hi,
> 
> For our (about 200) archive-folders we currently have a procmail-script 
> (on our old server) that I want to migrate to sieve (for the new servers 
> ;-)). Basicly, the functionality of the procmail-script comes down to:
> 
> if envelope :detail "to" "blabla" {
>       fileinto "archive.blabla";
>       }
> 
> ... for evey folder. We have the "archive" user so we can mail to 
> "archive+folder" to get it stored properly.

If you are already sending to archive+folder, why do you need sieve?


> 
> That "for every folder" is my problem with sieve. I tried something like
> 
> if envelope :regex :detail "to" "(.*)" {
>        fileinto "archief.$1";
>        }

You would the need the (yet unimplemented) "variables" extension to do this.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list