From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69166 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: filtering nntp messages Date: Sat, 24 Oct 2009 10:10:02 -0500 Organization: Still searching... Message-ID: <873a58q14l.fsf@newsguy.com> References: <87fx9ayr7z.fsf@newsguy.com> <874oppivvc.fsf@topper.koldfront.dk> <87skd9en56.fsf@lifelogs.com> <87bpjxpnim.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256397088 7345 80.91.229.12 (24 Oct 2009 15:11:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Oct 2009 15:11:28 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17579@lists.math.uh.edu Sat Oct 24 17:11:21 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 1N1iH1-0007NA-8W for ding-account@gmane.org; Sat, 24 Oct 2009 17:11:19 +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 1N1iGC-0005J1-Se; Sat, 24 Oct 2009 10:10:28 -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 1N1iGB-0005In-7l for ding@lists.math.uh.edu; Sat, 24 Oct 2009 10:10:27 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1N1iG9-0000NP-GF for ding@lists.math.uh.edu; Sat, 24 Oct 2009 10:10:27 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1N1iG8-0002AA-00 for ; Sat, 24 Oct 2009 17:10:24 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N1iG8-00071U-Og for ding@gnus.org; Sat, 24 Oct 2009 17:10:24 +0200 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Oct 2009 17:10:24 +0200 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Oct 2009 17:10:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:JQJZ3znyi1q7FovadztCwV6r5zs= X-Spam-Score: -2.7 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69166 Archived-At: Steinar Bang writes: > This is if comp.unix.shell is a group on your primary server. If it is > on a secondary server, the file name will be prefixed by the server > name, e.g. ~/News/nntp+news.gmane.org:gmane.discuss.SCORE for this > group. Looking at the rule created and browsing through the emacs manual bit concerning regular expressions... I'm still not sure if I'm getting it right. The rule ends up looking like: (("from" ("@[0-9]+\\.com>" -1 nil s))) I was shooting for matching any From: header with ATsign followed by 1 or more digits followed by a dot followed by com> It appears the vast majority of spam in comp.unix.shell has that regexp in its `From:' line. But I think it would be quite rare for regular folks to have that in their `From:' line. If that regex does what I was shooting for, then from their how do I get to where those are marked read? What I've done so far appears to have had no effect on what I see when I open the group. After creating the rule, I marked several hundred messages as unread, left the group with ZZ and reopened it... I still see all the spam. Nearly all those messages now have a Y on the left of summary line. Should I not see the spam now? Is my regexp messed up? How would I combine that rule with a more compound rule including some other header? If I go back into the group select a spam message and attempt to create a filter on Subject (L s r p) after adjusting the regex and press enter... the rule seems to just disappear. Opening the SCORE file I see the same `From:' rule and nothing else.