Gnus development mailing list
 help / color / mirror / Atom feed
From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: Re: filtering nntp messages
Date: Sat, 24 Oct 2009 18:48:14 +0200	[thread overview]
Message-ID: <87aazg91rl.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <87vdi4ojbe.fsf@newsguy.com>

On Sat, 24 Oct 2009 11:22:37 -0500, Harry wrote:

>> ,----[ nntp+news.gmane.org:gmane.config.SCORE ]
>> | (("subject"
>> |   ("Cron <root@.*" -5000 nil r)
>> |   ("CVS update of .*" -5000 nil r)))
>> `----

[...]

> In your example above, It can't mean that both items must appear in the
> subject line... so apparently either appearing will do it.

Yes, each regular expression is matched against the subject and the
corresponding score is applied if it matches.

> If I wanted to have a rule that looked for `@[0-9]+\.com>' in From:
> line and any of sell|free|discount in the subject line:

I don't know that you can do that, unless you use Advanced Scoring (see
http://gnus.org/manual/gnus_277.html#SEC277 )

> I guess it would look like:
> ,----
> | (("from"
> |   ("@[0-9]+\\.com>" -100 nil r))
> |  ("subject"
> |   ("sale\\|free\\|discount" -100 nil r)))
> `----

There is no implicit AND between the different matches, so I would
expect the above to give articles only matching on from -100, articles
only matching subject -100, and articles matching both -200.

> ,----
> | (("from"
> |   ("@[0-9]+\\.com>" -100 nil r)))
> | (("subject"
> |   ("sale\\|free\\|discount" -100 nil r)))
> `----

That doesn't look valid to me - you seem to be making up your own
syntax. The manual clearly states:

  "A score file is an emacs-lisp file that normally contains just a single form."
   - http://gnus.org/manual/gnus_266.html#SEC266


  Best regards,

-- 
 "Gravity is arbitrary!"                                      Adam Sjøgren
                                                         asjo@koldfront.dk




  reply	other threads:[~2009-10-24 16:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 17:06 Harry Putnam
2009-10-23 22:33 ` Adam Sjøgren
2009-10-23 22:55   ` Ted Zlatanov
2009-10-24  1:51     ` Harry Putnam
2009-10-24  2:12       ` Harry Putnam
2009-10-24 11:20         ` Adam Sjøgren
2009-10-24 16:22           ` Harry Putnam
2009-10-24 16:48             ` Adam Sjøgren [this message]
2009-10-24 19:45               ` Harry Putnam
2009-10-24  5:04       ` Ted Zlatanov
2009-10-24 10:13       ` Steinar Bang
2009-10-24 15:10         ` Harry Putnam
2009-10-24 16:38           ` Adam Sjøgren
2009-10-24 19:55             ` Harry Putnam
2009-10-24 20:12               ` Adam Sjøgren
2009-10-24 22:07                 ` Harry Putnam
2009-10-24 22:59                   ` Harry Putnam
2009-10-24 22:05           ` Steinar Bang
2009-10-24 22:09             ` Steinar Bang

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=87aazg91rl.fsf@topper.koldfront.dk \
    --to=asjo@koldfront.dk \
    --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).