On Wed, Dec 22, 2010 at 13:28, Stephan Bosch stephan@rename-it.nl wrote:
Op 22-12-2010 19:12, Phil Howard schreef:
Do I need to have per-user sieves set up, too, just to get it to work?
No.
I did some debugging. It looks like I do need to have that set up: ================================================================ begin deliver(phil@ham.org): 2010-12-22 15:10:03 Error: Per-user script path is unknown. See http://wiki.dovecot.org/LDA/Sieve#location ================================================================ end
However, this message itself is broken, because that page (redirects to wiki1, now) does not have a label called "location". Or is it that the page is broken by not having a label that works for code already distributed. Whatever.
So I changed it to this, adding the setup for per-user scripts: ================================================================ begin plugin { sieve_global_path = /home/sieve-scripts/DEFAULT.sieve sieve = /home/sieve-scripts/%u } ================================================================ end
With this /home/sieve-scripts/DEFAULT.sieve compiled: ================================================================ begin require "fileinto"; fileinto "INBOX.spamtest"; ================================================================ end
And now I get this: ================================================================ begin deliver(phil@ham.org): 2010-12-22 15:32:42 Info: Loading modules from directory: /usr/lib/dovecot/modules/lda deliver(phil@ham.org): 2010-12-22 15:32:42 Info: Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so deliver(phil@ham.org): 2010-12-22 15:32:42 Info: maildir: data=/home/mail/ham.org/phil/mail deliver(phil@ham.org): 2010-12-22 15:32:42 Info: maildir++: root=/home/mail/ham.org/phil/mail, index=, control=, inbox=/home/mail/ham.org/phil/mail deliver(phil@ham.org): 2010-12-22 15:32:42 Info: cmusieve: /home/sieve-scripts/phil@ham.org doesn't exist deliver(phil@ham.org): 2010-12-22 15:32:42 Info: cmusieve: Using sieve path: /home/sieve-scripts/DEFAULT.sieve deliver(phil@ham.org): 2010-12-22 15:32:42 Info: cmusieve: Executing script /home/sieve-scripts/DEFAULT.sievec deliver(phil@ham.org): 2010-12-22 15:32:42 Info: msgid=1293049962.4148.20.camel@lorentz: saved mail to INBOX.spamtest ================================================================ end
Success!
-- sHiFt HaPpEnS!