Juan Asensio Sánchez
2008-May-27 22:47 UTC
[Dovecot] Error when using include directive in Sieve
Hi
I have two sieve scripts:
# cat /var/vmail/sieve/global
require ["include"];
include :global "spam";
include :personal "sieve";
# cat /var/vmail/sieve/spam
require "fileinto";
if exists "X-Spam-Flag" {
fileinto "Junk";
}
# ls -l /var/vmail/sieve/
total 16
-rw-r--r-- 1 mailuser mailgroup 68 2008-05-28 00:40 global
-rw------- 1 mailuser mailgroup 80 2008-05-28 00:40 globalc
-rw-r--r-- 1 mailuser mailgroup 68 2008-05-27 21:15 spam
-rw------- 1 mailuser mailgroup 80 2008-05-27 21:25 spamc
# cat /etc/dovecot/dovecot.conf
[...]
sieve_global_dir = /var/vmail/sieve/
sieve_global_path = /var/vmail/sieve/global
[...]
When delivering a message I get:
deliver(*****@*******): May 28 00:39:04 Error:
sieve_execute_bytecode(/var/vmail/sieve/globalc) failed
Personal sieve script is not sure to exist, only if the user has
created it. If I put the contents of the spam script in the global
script (replacing the content), everything works fine. Why does this
happen? Is it because the personal script doesn't exists?Or is the
syntax incorrect (i don't think this because the script is compiled)?
Thanks in advance.
Juan Asensio S?nchez wrote:> Personal sieve script is not sure to exist, only if the user hasUnfortunately, included files must exist. See http://dovecot.org/list/dovecot/2008-February/029090.html Cheers, Anders.
Charles Marcus
2008-May-28 10:20 UTC
[Dovecot] Error when using include directive in Sieve
On 5/27/2008 6:47 PM, Juan Asensio S?nchez wrote:> Hi > > I have two sieve scripts:Is this the same installation as the one with the 'error antispam plugin'? If so, there is no 1.1rc15, so, was it actually 1.1rc5? Or 1.0rc15? Iinclude support is not available in the 1.0.x series, only in 1.1... -- Best regards, Charles