Problem with sieve not triggering randomly?

Chris Adams cma at cmadams.net
Tue May 19 20:00:50 UTC 2015


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";
	}

???
-- 
Chris Adams <cma at cmadams.net>


More information about the dovecot mailing list