Re: [Dovecot] Sieve header :value test does not work

2011-09-07 Thread Tom Hendrikx
On 06/09/11 21:21, Tom Hendrikx wrote: On 06/09/11 21:11, Tom Hendrikx wrote: hi, After following some examples and searching for sieve samples in this ml history, I'm quite sure that the following sieve snippet should give no surprises: if header :value ge :comparator i;ascii-numeric

Re: [Dovecot] Sieve header :value test does not work

2011-09-07 Thread Stephan Bosch
On 9/7/2011 2:40 PM, Tom Hendrikx wrote: The above snippet poses some other issue that I cannot easily solve: the ascii-numeric comparator only handles integer values. All 0. header values are truncated to 0 by the comparator, just like the sieve script value 0.95. After comparision, this

Re: [Dovecot] Sieve header :value test does not work

2011-09-07 Thread Tom Hendrikx
On 07/09/11 15:48, Stephan Bosch wrote: On 9/7/2011 2:40 PM, Tom Hendrikx wrote: The above snippet poses some other issue that I cannot easily solve: the ascii-numeric comparator only handles integer values. All 0. header values are truncated to 0 by the comparator, just like the sieve

Re: [Dovecot] Sieve header :value test does not work

2011-09-07 Thread Stephan Bosch
On 9/7/2011 4:17 PM, Tom Hendrikx wrote: Thanks for the idea :) My first alternative way of thinking was to put the header value in a variable, then multiply it by 1 (in my actual issue, the fraction always has 4 characters), then handle it as an int. However, doing a calculation is also not

Re: [Dovecot] Sieve header :value test does not work

2011-09-06 Thread Tom Hendrikx
On 06/09/11 21:11, Tom Hendrikx wrote: hi, After following some examples and searching for sieve samples in this ml history, I'm quite sure that the following sieve snippet should give no surprises: if header :value ge :comparator i;ascii-numeric X-Header-Name 0.99 { /* do something */ }