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
On Sun, May 06, 2007 at 03:52:14PM +0200, Matthias Kellermann wrote:> Hello everyone, > } > > elseif header :contains ["to", "Cc", "Bcc"]sieve has "elsif" .. not "elseif" Dunno if that is the problem, but:> May 6 15:47:08 gehirnschnecke deliver: sieve parse error for > matthias at adminlife.net: line 8: syntax error, unexpected IF, expecting '{'it seems to be the right line number. mm