[Dovecot] sieve parse error
Matthias Kellermann
matthias at adminlife.net
Sun May 6 16:52:14 EEST 2007
Hello everyone,
I'm using Dovecot (v1.0.beta3-3ubuntu5.4 under Ubuntu) with postfix and
LDA with virtual users. Everything is working fine.
To filter mails I use the Dovecot Sieve feature. But I get some strange
error for one simple Sieve script:
----------------------------------------------------------------------------------------------------
require "fileinto";
if header :contains ["to", "Cc", "Bcc"] ["freewrt-users at freewrt.org"] {
fileinto "Mailinglists.FreeWRT";
stop;
}
elseif header :contains ["to", "Cc", "Bcc"]
["getmail at discworld.dnsalias.org"] {
fileinto "Mailinglists.getmail";
stop;
}
----------------------------------------------------------------------------------------------------
This is the error I get in mail.log:
----------------------------------------------------------------------------------------------------
May 6 15:47:08 gehirnschnecke deliver: sieve parse error for
matthias at adminlife.net: line 8: syntax error, unexpected IF, expecting '{'
----------------------------------------------------------------------------------------------------
After studying sieve.info my sieve script should be correct. What could
be wrong here?
Thanks & best regards
Matthias
More information about the dovecot
mailing list