Gnus development mailing list
 help / color / mirror / Atom feed
* Adaptive scoring; problem or incorrect setup?
@ 1999-11-30 20:58 Rene Matteau
  1999-12-01 22:31 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Rene Matteau @ 1999-11-30 20:58 UTC (permalink / 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


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

* Re: Adaptive scoring; problem or incorrect setup?
  1999-11-30 20:58 Adaptive scoring; problem or incorrect setup? Rene Matteau
@ 1999-12-01 22:31 ` Lars Magne Ingebrigtsen
  1999-12-06 17:32   ` Rene Matteau
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-12-01 22:31 UTC (permalink / raw)


Rene Matteau <matteau@ca.ibm.com> writes:

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

No.

> 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:

If you don't want adaptive scoring in some groups, you must switch it
off for those groups (for instance with group/topic parameters).

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

If the score goes down past mark and expunge, they will be marked and
expunged. 

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: Adaptive scoring; problem or incorrect setup?
  1999-12-01 22:31 ` Lars Magne Ingebrigtsen
@ 1999-12-06 17:32   ` Rene Matteau
  0 siblings, 0 replies; 3+ messages in thread
From: Rene Matteau @ 1999-12-06 17:32 UTC (permalink / raw)


Lars, Thank you for the response but still no luck:

I am running gnus 5.8.2 with Emacs 20.4 on Windows NT

In my .gnus.el, I have:

; Use only one score file
(setq gnus-home-score-file "my-total-score-file.SCORE")

In one of the groups for which I want adaptive scoring, I have in the
group parameters:

((gnus-use-adaptive-scoring '(word line)) 
(gnus-article-sort-functions
        '(gnus-article-sort-by-score gnus-article-sort-by-subject))
(gnus-adaptive-word-no-group-words t)) 

In the summary buffer of the newsgroup corresponding to this group
parameter, the variable "gnus-use-adaptive-scoring" evaluates as
'(word line) as expected. However, the ADAPT file is not create and no
adaptive scoring seems to be done. What am I missing?

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Rene Matteau <matteau@ca.ibm.com> writes:
> > 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:
> 
> If you don't want adaptive scoring in some groups, you must switch it
> off for those groups (for instance with group/topic parameters).
> 

-- 
Rene


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

end of thread, other threads:[~1999-12-06 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-30 20:58 Adaptive scoring; problem or incorrect setup? Rene Matteau
1999-12-01 22:31 ` Lars Magne Ingebrigtsen
1999-12-06 17:32   ` Rene Matteau

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).