From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88949 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.gnus.general Subject: scoring role for all but a few groups Date: Tue, 07 Jan 2020 11:58:42 -0500 Organization: disorganization Message-ID: Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="170381"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) To: ding@gnus.org Original-X-From: ding-owner+M37152@lists.math.uh.edu Tue Jan 07 17:59:47 2020 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iosCm-000dpV-HK for ding-account@gmane.org; Tue, 07 Jan 2020 17:59:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1iosC7-0004w9-13; Tue, 07 Jan 2020 10:59:03 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iosC4-0004tR-11 for ding@lists.math.uh.edu; Tue, 07 Jan 2020 10:59:00 -0600 Original-Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iosC2-0007Sj-An for ding@lists.math.uh.edu; Tue, 07 Jan 2020 10:58:59 -0600 Original-Received: from blaine.gmane.org ([195.159.176.226]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iosBv-0002q3-Se for ding@gnus.org; Tue, 07 Jan 2020 17:58:54 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iosBv-000KDX-2N for ding@gnus.org; Tue, 07 Jan 2020 17:58:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:AqpwxAvNE79i8KaE5UZxGJaZDpU= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88949 Archived-At: Hi, I have a couple of scoring rules that I want to be applied to _all_ groups _except_ for a handful of others. (e.g., kill all non-ASCII subjects _except_ for 1 non-ASCII group or up-score new threads _except_ for groups like reddit and slashdot where _every_ message is a new thread). I tried adding the general rule into the global score file and the opposite rule into the file relevant only to the "except" groups, but it did not work (https://debbugs.gnu.org/db/36/36697.html). It looks like I have to put the rule --8<---------------cut here---------------start------------->8--- (("references" ("" 1000 nil e))) ; new thread --8<---------------cut here---------------end--------------->8--- into a separate file `new-thread` and this --8<---------------cut here---------------start------------->8--- (add-hook 'gnus-score-find-score-files-function 'sds-gnus-upscore-new-thread) (defun sds-gnus-upscore-new-thread (group) (and (not (string-match "\\.\\(news\\|slashdot\\|announce\\)" group)) '("new-thread"))) --8<---------------cut here---------------end--------------->8--- to `.emacs` This seems like an ugly solution (at the very least I wish I could put the rules in the function body, but it does not work despite the doc saying it should). Any better suggestions? Thanks! -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1671 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com https://thereligionofpeace.com http://think-israel.org https://ffii.org XML is like violence. If it doesn't solve the problem, use more.