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
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
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
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
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 */ }