-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi!
I'm currently hunting a problem with the Cyrus sieve functionality. I have a OpenGroupware.org installation and I want to use the integrated mail filter editor which is based on a sieve script. But it doesn't seem to work as the Cyrus sieve server always reports the following error when OpenGroupware tries to upload a new sieve script: Oct 10 19:08:19 schiller sieve[17790]: line 1: parse error, unexpected IF, expecting STRING^M To narrow down the problem I followed the tests as described in the documentation provided with the Cyrus sources (file "install-sieve.html", chapter "testing the sieve server") Here are the results: I can successfully telnet to the sieve server: [EMAIL PROTECTED]:~ {1007} % telnet localhost 2000 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. "IMPLEMENTATION" "Cyrus timsieved v2.2.12" "SASL" "PLAIN" "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational comparator-i;ascii-numeric regex" OK logout OK "Logout Complete" Connection closed by foreign host. I can also successfully connect to the sieve server using "sieveshell": [EMAIL PROTECTED]:~ {1008} % sieveshell localhost connecting to localhost Please enter your password: > quit But I am not able to upload the little sieve script provided as example in the Cyrus documentation: [EMAIL PROTECTED]:~ {1009} % cat myscript.script require ["reject","fileinto"]; if address :is :all "From" "[EMAIL PROTECTED]" { reject "testing"; } [EMAIL PROTECTED]:~ {1010} % sieveshell localhost connecting to localhost Please enter your password: > put myscript.script upload failed: put script: script errors: line 1: parse error, unexpected IF, expecting STRING As you can see I'm getting exactly the same error message like the one I get when OGo tries to upload the "ogo" script, so it looks at this is a general problem with the cyrus sieve server. I tried several other sieve scripts, but I always get some "parse error", except when I upload an empty script or a script consisting of comments only: [EMAIL PROTECTED]:~ {1012} % cat sievetest # # this is just a test # [EMAIL PROTECTED]:~ {1012} % sieveshell localhost connecting to localhost Please enter your password: > put sievetest > list sievetest > get sievetest # # this is just a test # > I'm using Cyrus imapd 2.2.12 under Linux (kernel 2.4.31, glibc 2.3.5, gcc 3.3.4, everything was compiled by myself) The Cyrus IMAP server is working fine, but I haven't got sieve to work yet. Do I miss something here? - - andreas - -- Andreas Haumer | mailto:[EMAIL PROTECTED] *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDSqZPxJmyeGcXPhERAuRwAJ48TL+x1mRO4tFHinSbduVsRibEbwCcDPQb hwru2eB7S1wt6Fn/lqDPr+8= =RmD/ -----END PGP SIGNATURE----- ---- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html