Gnus development mailing list
 help / color / mirror / Atom feed
* Bug and fix in advanced scoring with < > <= >=
@ 2002-08-02 10:28 Scott A Crosby
  2002-08-02 10:45 ` Simon Josefsson
  0 siblings, 1 reply; 2+ messages in thread
From: Scott A Crosby @ 2002-08-02 10:28 UTC (permalink / raw)


In advanced scoring, if you have, for example:

 ((|
   ("lines" 400 >)) 1000)

This does not match if the number of lines is > 400, but rather
matches if 400 > the number of lines...

See:

(defun gnus-advanced-integer (index match type)
  (if (not (memq type '(< > <= >= =)))
      (error "No such integer score type: %s" type)
    (funcall type match (or (aref gnus-advanced-headers index) 0))))

This is counter intuitive. For example, these two score rules mean
different things. (all messages that don't have exactly 400 lines will
be scored up 3000, not score up all messages > 400 lines by 3000 twice
which is what is intended.)

(((|
    ("lines" 400 >))
   3000)
 ("lines"
  (400 3000 nil >)))


What we want is:

(defun gnus-advanced-integer (index match type)
  (if (not (memq type '(< > <= >= =)))
      (error "No such integer score type: %s" type)
    (funcall type (or (aref gnus-advanced-headers index) 0) match)))


Scott



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug and fix in advanced scoring with < > <= >=
  2002-08-02 10:28 Bug and fix in advanced scoring with < > <= >= Scott A Crosby
@ 2002-08-02 10:45 ` Simon Josefsson
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Josefsson @ 2002-08-02 10:45 UTC (permalink / raw)
  Cc: ding

Scott A Crosby <scrosby@cs.rice.edu> writes:

> What we want is:

Added, thanks.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-02 10:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-02 10:28 Bug and fix in advanced scoring with < > <= >= Scott A Crosby
2002-08-02 10:45 ` Simon Josefsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).