From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/27340 Path: main.gmane.org!not-for-mail From: Rene Matteau Newsgroups: gmane.emacs.gnus.general Subject: Adaptive scoring; problem or incorrect setup? Date: 30 Nov 1999 15:58:16 -0500 Organization: Gnus Information Center Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035164381 24025 80.91.224.250 (21 Oct 2002 01:39:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:39:41 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id QAA26061 for ; Tue, 30 Nov 1999 16:01:12 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB32204; Tue, 30 Nov 1999 15:00:28 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 30 Nov 1999 14:59:47 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA06789 for ; Tue, 30 Nov 1999 14:59:33 -0600 (CST) Original-Received: from quimby.gnus.org (quimby.gnus.org [193.69.4.139]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA26028 for ; Tue, 30 Nov 1999 15:59:06 -0500 (EST) Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id WAA04665 for ding@gnus.org; Tue, 30 Nov 1999 22:01:14 +0100 (CET) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 88 Original-NNTP-Posting-Host: fw2.torolab.ibm.com Original-X-Trace: quimby.gnus.org 943995673 13927 199.246.40.3 (30 Nov 1999 21:01:13 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 30 Nov 1999 21:01:13 GMT User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:27340 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:27340 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