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

bugs at horde.org bugs at horde.org
Fri Sep 12 06:38:32 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             |
+New Attachment     | sieve-negative-v2.patch
------------------------------------------------------------------------------


bb at apc.ag (2008-09-12 02:38) wrote:

OK, here is a new version of the patch, this time it's the Relational  
function that's changed. The change in the spam function was reverted  
because creating the Relational match has the same effect.

For comparisons <=, < and !=, the normal comparison is ORed with the  
check for the minus sign so negative numbers in the mail header match,  
too.

For comparisons >=, > and =, the minus sign in the mail header causes  
a non-match.

It's still not possible to use negative numbers for the comparison  
(i.e. enter them in Horde and hope that they'll work). But at least  
all cases of negative numbers in the mail header are supported as long  
as the entered comparison value is positive.





More information about the bugs mailing list