From: IPmonger <ipmonger@delamancha.org>
Subject: Help with Adaptive Scoring Problems (2nd try)
Date: Thu, 21 Feb 2002 19:13:16 -0500 [thread overview]
Message-ID: <m3vgcqbcgz.fsf@cornelius.delamancha.org> (raw)
Folks,
I thought I sent this late last night, but I haven't seen it go
through yet, so here goes...
I used to use the following adaptive-score-alist:
(defvar gnus-default-adaptive-score-alist
'((gnus-unread-mark (thread 10))
(gnus-ticked-mark (from 4))
(gnus-dormant-mark (from 5))
(gnus-del-mark (from -4) (subject -1) (thread -1))
(gnus-read-mark (from 4) (subject 2) (thread 25))
(gnus-expirable-mark)
(gnus-killed-mark (from -10) (subject -3))
(gnus-kill-file-mark)
(gnus-ancient-mark)
(gnus-low-score-mark)
(gnus-catchup-mark (from -1) (subject -1))))
But, when I set it up this way now, the (thread <score-delta>)
entries cause an Elisp error when I attempt to exit a group.
gnus-score-adaptive() converts the above alist into a list which
contains functions in one of two forms: either (lambda ....)
lists or the original (tag arg) list.
This conversion begins on line 2208 of gnus-score.el. The test to
convert to a (lambda ...) list is to append the scoring tag name
to "message-header-" and then to look up the symbol in obarray via a
call to intern. the symbol 'message-header-thread is not predefined,
so (intern "message-header-thread") returns a symbol that is unbound.
This, in turn, means that the list (thread <score-delta>) is *not*
converted to a (lambda ...) list.
Later, at line 2227 of gnus-score.el, we try to use the scoring
functions. We do this by using (funcall (caar elem) headers). This
means that we end up trying to call the function #'thread which
doesn't exist!
Where is this supposed to be set up? I did check the info files and
you are supposed to be able to score adaptively by thread, so I think
that this is a bug.
-IPmonger
--
------------------
IPmonger
ipmonger@delamancha.org
CCIE #8338
next reply other threads:[~2002-02-22 0:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-22 0:13 IPmonger [this message]
2002-02-22 0:13 IPmonger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3vgcqbcgz.fsf@cornelius.delamancha.org \
--to=ipmonger@delamancha.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).