[Tickets #7308] Re: Sieve: numeric comparison with negative numbers fails

bugs at horde.org bugs at horde.org
Thu Sep 11 13:47:08 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7308
------------------------------------------------------------------------------
  Ticket             | 7308
  Updated By         | bb at apc.ag
  Summary            | Sieve: numeric comparison with negative numbers fails
  Queue              | Ingo
  Version            | 1.2
  Type               | Enhancement
  State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


bb at apc.ag (2008-09-11 09:47) wrote:

That's right. The problem is, as Sieve simply doesn't compare negative  
numbers correctly, there's no way to really fix it. If the header or  
comparison value are negative, the result is undefined.

See RFC (from January 2008): http://tools.ietf.org/html/rfc5231
It's the standard that says that the comparison doesn't support  
negative numbers, so probably this won't be fixed soon. Maybe Horde  
should display a warning when using the Sieve backend.

It works for the spam case because the reasonable range of  
X-Spam-Score is positive and we can assume that mails with a negative  
score won't be spam regardless of the score.





More information about the bugs mailing list