Gnus development mailing list
 help / color / mirror / Atom feed
From: Dave Marquardt <davemarq@linux.vnet.ibm.com>
To: Sam Steingold <sds@gnu.org>
Cc: ding@gnus.org
Subject: Re: scoring based on a number of matches
Date: Tue, 09 Jul 2019 10:39:31 -0500	[thread overview]
Message-ID: <87wogrz07g.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <m1wogs6kpt.fsf@gnu.org> (Sam Steingold's message of "Mon, 08 Jul 2019 21:49:18 -0400")

Did you look at the Advanced Scoring section of the Gnus manual?  Try
https://www.gnus.org/manual/gnus_105.html#Advanced-Scoring


-----------------------
On Mon, Jul 08 2019, Sam Steingold wrote:

Hi,
I want to down-score articles with many all-upper case words in the
subject.
Ideally, I would like a "multiplier", e.g.:

(("subject"
 ("!" (0 -10 -3) nil s)))


would ignore the 1st "!", reduce the score by 10 for the second "!",
and by 3 for each after that.

In the meantime, I would settle for a regexp that would match long
subjects lines without any lower case characters (see comp.lang.lisp):

Subject: E' PEDOFILO ED ASSASSINO: PAOLO CARDENÀ (FACEBOOK & TWITTER)! DI CRIMINALISSIMO BLOG VINCITORI E VINTI ( VEDRA' COME LO FAREMO DIVENIRE PARTE DELLA SECONDA CATEGORIA E NON PRIMA, CHE RICICLI DA SEMPRE SOLDI DI MAFIA, CAMORRA E NDRANGHETA O MENO..."O


I tried

(("subject"
  ("[^a-z]\\{100\\}" -100 nil r)))

to no  avail.

Thanks.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1671
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
http://thereligionofpeace.com http://think-israel.org
Democracy is like a car: you can ride it or you can run people over with it.



  reply	other threads:[~2019-07-09 15:39 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 [this message]
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

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=87wogrz07g.fsf@linux.vnet.ibm.com \
    --to=davemarq@linux.vnet.ibm.com \
    --cc=ding@gnus.org \
    --cc=sds@gnu.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).