[Dovecot] sieve filters
Ian P. Christian
pookey at pookey.co.uk
Thu Feb 19 12:19:17 EET 2009
2009/2/19 Ian P. Christian <pookey at pookey.co.uk>:
> The first if appears to match, as if I move the fileinto up there it
> works - however it doesn't work as it shown here. Can anyone suggest
> why? Can I achieve what I'm trying to do with sieve? How can I go
> about debugging scripts?
>
I've made some progress, but now I'm wondering if it's actually possible....
# X-pstn-levels: (S: 0.00799/98.42547 CV:99.9000 FC:95.5390 LC:95.5390
R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
# X-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c
if header :matches "X-pstn-levels" "(S: */*"
{
set "score" "${1}";
if header :matches "X-pstn-settings" "? (*:*) *"
{
set "threshold" "${3}";
if "${score}" :under "${threshold}"
{
}
}
}
There doesn't appear to be a way of comparing the value of 2 floating
point numeric variables (or integers for that matter).
Any suggestions?
Thanks again,
Ian
More information about the dovecot
mailing list