Gnus development mailing list
 help / color / mirror / Atom feed
From: Rene Matteau <matteau@ca.ibm.com>
Subject: Adaptive scoring; problem or incorrect setup?
Date: 30 Nov 1999 15:58:16 -0500	[thread overview]
Message-ID: <uso1nbst3.fsf@ca.ibm.com> (raw)

I am following many newsgroup from 5 different news servers. I am
running PGnus 0.98. I am trying to use adaptive scoring for a very
limited number of newsgroups. I have one score file that is used in all
of the groups that I read. For the newsgroups that uses adaptive
scoring, I would like to use the main score file in addition to the
adaptive scoring but all the filters set by the adaptive scoring
should go in the local group adaptive scoring file and all "L" or "I"
command score would go in the main scoring file. Is this possible?

What I have now is not quite what I want; it is using my main scoring
file for newsgroups for which I don't want to use adaptive scoring and
it is using the local group scoring file for the newsgroups for which
I want to use adaptive scoring. 

The way I set this up is via the gnus-summary-mode-hook. Here are the
relevant code in my .gnus.el file:

;; How many days should pass before an unused entry is expired
(setq gnus-score-expiry-days 30)

;; Different summary line format based on newsgroup
;; New format for summary (add the article id)
(add-hook 'gnus-summary-mode-hook 'my-alter-summary-line-format)

(defun my-alter-summary-line-format ()
  "My alter summary line format"
  (cond
	
   ; Mail group
   ((string-match "^nnml" gnus-newsgroup-name)
    (setq gnus-summary-line-format "%U%R%z%I %d %N (%[%4L: %-20,20n%]%) %s\n") ; Mail
    (setq gnus-show-threads nil)
    (setq gnus-use-adaptive-scoring nil)
    (setq gnus-adaptive-word-no-group-words nil)
    )

   ; Adaptative scoring on certain groups only
   ((string-match "^comp.security.firewalls$\\|^comp.security.misc$\\|^comp.emacs$\\|^comp.emacs.xemacs$\\|^gnu.emacs.help$\\|^nntp\\+msnews" gnus-newsgroup-name)
    (setq gnus-summary-line-format "%U%R%z{%5i}%I%N%(%[%4L: %-20,20n%]%) %s\n") ; News
    (setq gnus-show-threads t)
    (setq gnus-article-sort-functions '(gnus-article-sort-by-score
					gnus-article-sort-by-subject))
    (setq gnus-home-score-file 'gnus-current-home-score-file) ;; use a single score file
    (setq gnus-use-adaptive-scoring '(word line))
    (setq gnus-adaptive-word-no-group-words t)
    )

   ; Normal news group
   (t
    (setq gnus-summary-line-format "%U%R%z%I%N%(%[%4L: %-20,20n%]%) %s\n") ; News
    (setq gnus-show-threads t)
    (setq gnus-home-score-file "my-total-score-file.SCORE") ;; use a single score file
    (setq gnus-use-adaptive-scoring nil)
    (setq gnus-adaptive-word-no-group-words nil)
    )
   )
  )


A few questions and problems:

1) Are the variable setup in the gnus-summary-mode-hook local to that
summary buffer?

2) I am seeing ADAPT scoring file that have subject adaptive scoring
rules in newsgroups for which I would not expect to have adaptive
scoring setup (I know about followup scoring). Some examples are the
following newsgroups which should not match the above filters:

comp.lang.perl.moderated.ADAPT
gnu.emacs.sources.ADAPT
nntp-quimby.gnus.org_gnus.cvslog.ADAPT

3) My (truncated) main score file is:

(("subject"
  ("FREE COMPUTERS FOR REAL" -1000 730088 r))
 (mark -999)
 (expunge -999))

How will the mark and expunge interact with adaptive scoring (or will they)?

I have spent a lot of time in a recent manual (0.95 I believe) but I
am stuck :-)

Thanks...
-- 
Rene


             reply	other threads:[~1999-11-30 20:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-30 20:58 Rene Matteau [this message]
1999-12-01 22:31 ` Lars Magne Ingebrigtsen
1999-12-06 17:32   ` Rene Matteau

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=uso1nbst3.fsf@ca.ibm.com \
    --to=matteau@ca.ibm.com \
    /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).