Problem with sieve not triggering randomly?
Stephan Bosch
stephan at rename-it.nl
Wed May 20 22:35:22 UTC 2015
On 5/19/2015 10:00 PM, Chris Adams wrote:
> Once upon a time, Chris Adams <cma at cmadams.net> said:
>> Okay, digging some more, it looks like something in sieve is overwriting
>> the wrong thing when it gets messages with some headers (at least From:
>> and Subject:) repeated. I enabled the vnd.dovecot.debug sieve plugin,
>> and used this sieve script:
> And I guess something is re-parsing them at some point? The following
> sieve script has the problem:
>
> # compile with "sievec /etc/dovecot/default.sieve"
> require "fileinto";
> if header :contains "X-Spam-Flag" "YES" {
> fileinto "Spam";
> }
>
> Doubling up the test makes it work however:
>
> # compile with "sievec /etc/dovecot/default.sieve"
> require "fileinto";
> if header :contains "X-Spam-Flag" "YES" {
> fileinto "Spam";
> }
> if header :contains "X-Spam-Flag" "YES" {
> fileinto "Spam";
> }
I will probably have time to investigate this more this weekend.
BTW, you're using a pretty old version of Dovecot and Pigeonhole. Do you
have the possibility to try a newer version?
Regards,
Stephan.
More information about the dovecot
mailing list