From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69169 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: filtering nntp messages Date: Sat, 24 Oct 2009 18:48:14 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87aazg91rl.fsf@topper.koldfront.dk> References: <87fx9ayr7z.fsf@newsguy.com> <874oppivvc.fsf@topper.koldfront.dk> <87skd9en56.fsf@lifelogs.com> <87bpjxpnim.fsf@newsguy.com> <877hulpmkn.fsf@newsguy.com> <87ljj182dz.fsf@topper.koldfront.dk> <87vdi4ojbe.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1256402965 23070 80.91.229.12 (24 Oct 2009 16:49:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2009 16:49:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17582@lists.math.uh.edu Sat Oct 24 18:49:19 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1N1jno-00050j-RZ for ding-account@gmane.org; Sat, 24 Oct 2009 18:49:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1N1jnh-0005nF-TV; Sat, 24 Oct 2009 11:49:09 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1N1jnf-0005n0-Um for ding@lists.math.uh.edu; Sat, 24 Oct 2009 11:49:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1N1jne-0000gW-0Q for ding@lists.math.uh.edu; Sat, 24 Oct 2009 11:49:07 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1N1jnd-0003kF-00 for ; Sat, 24 Oct 2009 18:49:05 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N1jnb-0004vW-2M for ding@gnus.org; Sat, 24 Oct 2009 18:49:03 +0200 Original-Received: from 1303ds1-by.0.fullrate.dk ([90.184.80.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Oct 2009 18:49:03 +0200 Original-Received: from asjo by 1303ds1-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Oct 2009 18:49:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 1303ds1-by.0.fullrate.dk X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69169 Archived-At: On Sat, 24 Oct 2009 11:22:37 -0500, Harry wrote: >> ,----[ nntp+news.gmane.org:gmane.config.SCORE ] >> | (("subject" >> | ("Cron > | ("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