How to include global sieve script for each user
Sebastian Hagedorn
Hagedorn at uni-koeln.de
Tue Mar 6 11:43:57 EST 2007
-- Ulrich Spoerlein <uspoerlein at gmail.com> is rumored to have mumbled on 6. =
M=E4rz 2007 16:39:31 +0100 regarding How to include global sieve script for =
each user:
> I know this is a recurring topic here, but after hours of searching I
> still can't get this to work.
>
> I'm running Cyrus 2.3.7 on FreeBSD 6.2, I have added a global script like
> this:
>
> sieveshell -u cyrus -a cyrus -e "p spam.script spam" localhost
>
> Which results in the script showing up in sieve/global/spam.{bc,script}
>
> Now I want to upload a user script, consisting of the following lines
> (as per RFC)
>
> require ["include"];
> include :global "spam";
>
> Which results in an 'unsupported feature at line 1' error. I found
> posts claiming that Cyrus does not advertise the include extension,
> but works anyhow.
>
> I also tried only the line "include :global "spam";", but then I get
> "line 1: include not required".
>
> So what is the darn syntax, and why is cyrus documented so sparsely?
>From "man imapd.conf":
sieve_extensions: fileinto reject vacation imapflags notify =
envelope
relational regex subaddress copy
Space-separated list of Sieve extensions allowed to be used =
in
sieve scripts, enforced at submission by timsieved(8). Any =
previ-
ously installed script will be unaffected by this option and =
will
continue to execute regardless of the extensions used. =
This
option has no effect on options that are disabled at compile =
time
(e.g. "regex").
Allowed values: fileinto, reject, vacation, imapflags, =
notify,
include, envelope, body, relational, regex, subaddress, copy
I.e. you have to explicitly enable "include". Don't complain about missing =
documentation when you don't even bother to read it ...
--
Sebastian Hagedorn - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
Zentrum f=FCr angewandte Informatik - Universit=E4tsweiter Service RRZK
Universit=E4t zu K=F6ln / Cologne University - Tel. +49-221-478-5587
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20070306=
/f72c22f5/attachment.bin
More information about the Info-cyrus
mailing list