[Dovecot] Dovecot - Sieve script loaded but filtering doesn't works ?

Clement PAULET list.it at lmaccess.net
Tue Mar 19 16:13:06 EET 2013


Hello Steffen,

Thanks for your help, your message has reminds me that I forget the 
header specification.

This new sieve script works for me :

require ["fileinto"];
if allof (header :contains "To" "abuse at info.xx.com")
{
         fileinto "INBOX.Test";
         redirect "clement.xx at xx.net";
         stop;
}


Thanks,

Clement
-----

Date: Mon, 18 Mar 2013 14:28:17 +0100 (CET)
 From: Steffen Kaiser <skdovecot at smail.inf.fh-brs.de>
To: Dovecot Mailing List <dovecot at dovecot.org>
Subject: Re: [Dovecot] Dovecot - Sieve script loaded but filtering
	doesn't works ?
Message-ID:
	<alpine.DEB.2.02.1303181419590.3303 at pc-2m63.inf.fh-bonn-rhein-sieg.de>
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 18 Mar 2013, Clement PAULET wrote:

Dear Clement,

This is my script (using for my  test) :

require "fileinto";
if address "To" "info at info.xx.com"
{
    fileinto "Test";
}

Works for me in v2.2.

Did you verified that the header "To" really exists in the message and
that "info at info.xx.com" is part of it? The log you've posted displays 
the
envelope information, which is not necessary the same as the header
information.

Also, remove the precompiled Sieve script, in order to ensure that the
pre-compiled one is really one from the script. You could also 
decompile
it to make sure, it has been created from your test script.  You'll 
find
sieve-dump in src/sieve-tools/, if you compile from sources, or maybe 
in
/usr/local/bin.



More information about the dovecot mailing list