Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: scoring based on a number of matches
Date: Thu, 11 Jul 2019 13:10:04 -0700	[thread overview]
Message-ID: <87o920tjs3.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m1ef2w73rg.fsf@gnu.org>

Sam Steingold <sds@gnu.org> writes:

>> * Eric Abrahamsen <revp@revpnoenunzfra.arg> [2019-07-09 10:45:39 -0700]:
>>
>> Sam Steingold <sds@gnu.org> 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.




      reply	other threads:[~2019-07-11 20:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-09  1:49 Sam Steingold
2019-07-09 15:39 ` Dave Marquardt
2019-07-09 15:47   ` Sam Steingold
2019-07-09 15:52 ` Lars Ingebrigtsen
2019-07-09 17:24   ` Sam Steingold
2019-07-09 20:10   ` Andreas Schwab
2019-07-09 17:45 ` Eric Abrahamsen
2019-07-11 19:46   ` Sam Steingold
2019-07-11 20:10     ` Eric Abrahamsen [this message]

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=87o920tjs3.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    /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).