Cool!  I tried it on my server and now it works great.  Before I posted for
help, I used a script and called it defaultbc.  Cyrus was complaining that
the file was not a bytecode file.  I ended up having to add an entry in
/etc/servives and using sieveshell like you suggested.

Thanks for pointing that out to me.

Bob


"Kent L. Nasveschuk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Quick an dirty sieve scripts.
>
> There are many examples on the web but here is just one more.
>
> require ["fileinto","reject"];
>         if header :contains "X-Spam-Score" "*****" {
>                 fileinto "trash";}
>         elsif header :contains ["Sender","From"]
>                 "@wareham.k12.ma.us" {
>         fileinto "wpsstuff";}
>         elsif header :contains ["To","Cc","From"]
> "[EMAIL PROTECTED]" {
>         fileinto "cyrus";}
>         elsif header :contains ["To","Cc","From","Reply-To"]
> ["[EMAIL PROTECTED]","[EMAIL PROTECTED]"] {
>         fileinto "postgresql";}
>         elsif header :contains ["To","Cc","From","Reply-To"]
> "[EMAIL PROTECTED]" {
>         fileinto "opengroupware";}
>         elsif header :contains ["To","Cc","From"]
> "[EMAIL PROTECTED]" {
>         fileinto "samba";}
>         elsif header :contains ["To","Cc","From","Reply-To"]
> "[EMAIL PROTECTED]" {
>         fileinto "openldap";}
>                 else {
>                 fileinto "INBOX";
> }
>
> Create a sieve script in some directory. I use the username.sieve.
>
> Start a sieve shell
> sieveshell --user=kent --authname=cyrus localhost
>
> >put kent.sieve
> >activate kent.sieve
> >list
> >kent.sieve  <- active script
> >quit
>
> That's about it.
>
> These are on a per user basis. I don't how many can be set active at a
> time. The filtering works well. There was a lot of talk about global
> sieve scripts, one script that takes care of all users. I haven't
> reached that point yet.
>
> Hope this helps.



---
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

Reply via email to