Sieve not sieving...but why?

Jamie Thompson jamierocks at gmail.com
Sun Oct 17 19:41:10 EDT 2004


Wow, you fixed it. Websieve is cool (and most importantly, it worked
first time), but I like to hand-edit things, so I looked at the script
it generated an a quick comparison of my previous script and it
revealed the problem.

I based my test script on the one found here:
http://www.cyrusoft.com/sieve/scripts/simple-anti-spam.txt

The only change between the hand-coded version and the generated one
based upon that document was the anyof and corresponding brackets
around the subject-line test:

WRONG: if header :contains "subject" "eply") {
RIGHT: if anyof (header :contains "subject" "eply") {

So it would seem that the sieve test program needs to be revised
somehow if its accepting invalid syntax. (I feel I should point out
that the test program was from 2.1.14, but I couldn't see any reason
the syntax would change...though I never did get sieve working on my
old 2.1.14 redhat installation, it may have been incorrect for some
time).

Regardless, many thanks, you've made me a happy man.

On Sun, 17 Oct 2004 20:17:24 +0200, Dudi Goldenberg <dudi at kolcore.com> wrote:
> 
> Hi,
> 
> Works fine for me, also on Sarge...
> 
> What do u have for scripts?
> 
> Mine are at:
> mail:~# ls /var/spool/sieve/d/dudi/default -l
> lrwxrwxrwx  1 root root 14 Oct  8 08:21 /var/spool/sieve/d/dudi/default
> -> default.script
> mail:~#
> 
> And they all work.
> 
> Try apt-get install websieve, works like a charm.
> 
> Regards,
> 
> Dudi
> 
> 
> 
> -----Original Message-----
> From: owner-info-cyrus at lists.andrew.cmu.edu
> [mailto:owner-info-cyrus at lists.andrew.cmu.edu] On Behalf Of Jamie
> Thompson
> Sent: Sunday, October 17, 2004 5:35 PM
> To: info-cyrus at lists.andrew.cmu.edu
> Subject: Sieve not sieving...but why?
> 
> Hya, I know this is a common problem, but none fo the given responses
> I've read seems to make any difference to fixing the problem.
> 
> I'm running Debian Sarge's Postfix (2.1.4-5) and Cyrus21-imapd
> (2.1.16-10) packages, with sasl setup and working as well. I've set
> postfix to deliver to cyrus via lmtp, and this is working fine. Plus
> addressing is working fine (well, after discovering the anonymous user
> acl it was), which suggests to me that sieve is operating, though the
> test script I'm trying appears to be doing nothing. I've installed the
> script and activated it using sieveshell, and I've tested the script
> (simple though it is) with the test program found in the sieve
> directory of the source package, and that responds the way it should
> (i.e. it indicates it would file the message with "opic Reply" in the
> subject into the "INBOX/Forum" folder). I've also checked the script
> is getting uploaded correctly, and it seems fine as I can se it in the
> correct directory (/var/spool/sieve/x/x), and I've checked the
> permissions, even granting 777 permissions, just to be sure, but still
> no joy.
> 
> Here's the header from a test message (addresses edited for obvious
> reasons):
> <SNIP>
> Return-Path: <x at x.co.uk>
> Received: from mail ([unix socket])
>         by x.co.uk (Cyrus v2.1.16-IPv6-Debian-2.1.16-10) with LMTP; Sat,
> 16
> Oct 2004 14:56:22 +0100
> X-Sieve: CMU Sieve 2.2
> Received: from [0.0.0.0] (unknown [0.0.0.0])
>         by mail (Postfix) with ESMTP id 2016427632
>         for <x at x.co.uk>; Sat, 16 Oct 2004 14:56:22 +0100 (BST)
> Message-ID: <z>
> Disposition-Notification-To: Me <x at x.co.uk>
> Date: Sat, 16 Oct 2004 14:56:46 +0100
> From: Me <x at x.co.uk>
> User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
> X-Accept-Language: en-us, en
> MIME-Version: 1.0
> To: x at x.co.uk
> Subject: Topic reply
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
> </SNIP>
> 
> So, I'm at a loss as to whats going on. Sieve is running as I can
> connect to it both by sieveshell as well as by telnet:
> <snip>
> Trying 127.0.0.1...
> Connected to mail.
> Escape character is '^]'.
> "IMPLEMENTATION" "Cyrus timsieved v2.1.16-IPv6-Debian-2.1.16-10"
> "SASL" "PLAIN"
> "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
> relational regex"
> "STARTTLS"
> OK
> ^]
> telnet> quit
> Connection closed.
> </snip>
> 
> So thats where I am. Any thoughts?
> ---
> 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
> 
>
---
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




More information about the Info-cyrus mailing list