From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88660 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: scoring based on a number of matches Date: Thu, 11 Jul 2019 13:10:04 -0700 Message-ID: <87o920tjs3.fsf@ericabrahamsen.net> References: <87imsb85ks.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="155084"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36864@lists.math.uh.edu Thu Jul 11 22:10:34 2019 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 1hlfOk-000eBY-Bo for ding-account@gmane.org; Thu, 11 Jul 2019 22:10:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1hlfOV-0003YI-Hm; Thu, 11 Jul 2019 15:10:19 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hlfOQ-0003VQ-N3 for ding@lists.math.uh.edu; Thu, 11 Jul 2019 15:10:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hlfOP-0007Hq-8E for ding@lists.math.uh.edu; Thu, 11 Jul 2019 15:10:14 -0500 Original-Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226] helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlfOL-000797-L9 for ding@gnus.org; Thu, 11 Jul 2019 22:10:11 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hlfOL-000dln-Hp for ding@gnus.org; Thu, 11 Jul 2019 22:10:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:h9SOO6yv+/WR2gBkREkuSl5cPfI= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88660 Archived-At: Sam Steingold writes: >> * Eric Abrahamsen [2019-07-09 10:45:39 -0700]: >> >> Sam Steingold writes: >> >>> I want to down-score articles with many all-upper case words in the >>> subject. >>> Ideally, I would like a "multiplier", e.g.: >> >> Not the answer you wanted, but it sounds like you're asking Gnus to play >> the role of a Bayesian spam filter a la spamassassin or rspamd. > > This is for a bona fide comp.lang.lisp newsgoups. Cannot do that. Yeah, that wasn't terribly helpful advice. > However, the following works for me now: > > (("subject" > ("[^a-z]\\{40\\}" -100 nil R) > ("[^a-z]\\{100\\}" -300 nil R) > ("[^a-z]\\{150\\}" -1000 nil R) > )) > > (note `R` instead of `r`!) Glad you sorted it out! I'm still impressed Gnus can be a Bayesian filter if you try.