6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7308] Sieve: numeric comparison with negative numbers fails
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /.__ __.\ /._. >< [__)(__ >< | / \| .__)/ \_|_
Comment
> When using the Sieve backend in Ingo and setting numeric comparison > of X-Spam-Score, Ingo generates a rule that compares the X-Spam-Score > numerically with the entered value (e.g. 5). The problem is that this > comparison fails with negative spam scores (which can be quite > common) and the e-mail is moved into the spam folder. See, e.g.: > > http://tomster.org/blog/archive/2004/12/15/spamfiltering-using-spamassassin-and-sieve > > > > The rule will be correct if it checks for the minus sign. > > > > Wrong: > > if header :value "ge" :comparator "i;ascii-numeric" "X-Spam-Score" ["6"] { > > > > Correct: > > if allof ( not header :comparator "i;ascii-casemap" :contains > "X-Spam-Score" "-", header :value "ge" :comparator "i;ascii-numeric" > "X-Spam-Score" ["6"] ) { > > > > Working patch attached.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers