[Dovecot] [sieve] - counting headers

Daniel Parthey daniel.parthey at informatik.tu-chemnitz.de
Sun Oct 14 16:52:18 EEST 2012


Kamil Jońca wrote:
> In some of my maildrop filters I have rules with weighted scoring[1],
> but only to count headers (for example to count "Received:" header) 
> ie. all these rules are of form "/pattern/:h,1" 
> 
> Can dovecot sieve do this?

http://tools.ietf.org/rfc/rfc5231.txt

To check the number of received fields in the header, the following
test may be used:

header :count "ge" :comparator "i;ascii-numeric" ["received"] ["3"]

Regards
Daniel
-- 
https://plus.google.com/103021802792276734820



More information about the dovecot mailing list