Ken Murchison wrote on 15/12/2005 23:43: > Cristian Livadaru wrote: > >>hmmm that won't realz solve my "problem" or what easy way do I have to >>create a sieve script for all users ? some automated way to do so. > > You could look at the "auto create" patch that is floating around on the > list.
Or you could write a small script to create it. How it would have to look like would depend on where you can fetch a list of users from and where exactly your sieve scripts are kept, but basically, what you would do is (based on 2.2.12): - create your global sieve script. - use sievec to compile it: sievec -C /etc/imapd.conf sievescript sievescript.bc - link sievescript.bc into that users sieve directory as defaultbc I have "sievedir: /data/shared/cyrus/sieve" in my imapd.conf, so that link would have to be in /data/shared/cyrus/sieve/i/incase.de/c/cyrus for my email address used for this post. for [EMAIL PROTECTED], it would be .../sieve/d/do.main/u/user/defaultbc for [EMAIL PROTECTED], it would be .../sieve/u/user/defaultbc Make sure link and linked file are readable by your cyrus processes (so usually by the cyrus user, possibly in a chroot) HTH, Sven ---- 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