[Dovecot] Why not just ignore sieve include error and continue read and execute the rest of sieve rules?

Zhang Huangbin zhbmaillistonly at gmail.com
Fri Apr 24 04:46:48 EEST 2009


Hi, all.

I use a global sieve script and include user's personal sieve script in
it, but it doesn't run while user's sieve script not exist. Why not just
ignore this error and continue read and execute the rest of sieve rules?

My global script:
----
require ["include"];
include :personal ".dovecot.sieve";
----

Sieve log while user's personal sieve script doesn't exist:
----
Info: Loading modules from directory: /usr/lib64/dovecot/lda
Info: Module loaded: /usr/lib64/dovecot/lda/lib10_quota_plugin.so
Info: Module loaded: /usr/lib64/dovecot/lda/lib90_cmusieve_plugin.so
Info: auth input: home=/home/vmail/a.cn/www/
Info: auth input: quota_rule=*:bytes=104857600
Info: auth input: sieve_dir=/home/vmail/sieve/a.cn/www/
Info: Quota root: name= backend=maildir args=
Info: Quota rule: root= mailbox=* bytes=104857600 messages=0
Info: maildir: data=//home/vmail/a.cn/www//:INDEX=//home/vmail/a.cn/www//
Info: maildir++: root=//home/vmail/a.cn/www/, index=, control=, 
inbox=//home/vmail/a.cn/www/
Info: cmusieve: /home/vmail/a.cn/www//.dovecot.sieve doesn't exist
Info: cmusieve: Using sieve path: /home/vmail/.dovecot.sieve
Info: cmusieve: Executing script /home/vmail/.dovecot.sievec
Info: cmusieve: Script not found: /home/vmail/sieve/a.cn/www//.dovecot.sieve
Info: include: Script not found: '.dovecot.sieve'
Info: sieve runtime error: Include can not find script
Error: sieve_execute_bytecode(/home/vmail/.dovecot.sievec) failed
Info: msgid=<49F117C9.8020505 at b.cn>: saved mail to INBOX
----

-- 
Best regards.

Zhang Huangbin

- Open Source Mail Server Solution for RHEL/CentOS 5.x:
  http://code.google.com/p/iredmail/



More information about the dovecot mailing list