Article View: news.software.readers
Article #218915[LEAFNODE] Best Way To Test Filters
From: Tom Newton
Date: Wed, 09 Apr 2008 07:50
Date: Wed, 09 Apr 2008 07:50
42 lines
2158 bytes
2158 bytes
In order to see exactly how my filter is working, I've been running script then: fetchnews -n -v -D33 -e Then running the resulting file "typescript" through grep: grep "^<[0-9][0-9][0-9][0-9][0-9]*\|matched" This gives a long list of the xover information for each post, then a "matched" line if the post matched. An example (reformatted from three lines): <30221993 Re: Help for GG users to switch from GG Mike Dee <emteedee@invalid.invalid> Wed, 9 Apr 2008 06:02:52 +0000 (UTC) <Xns9A7BA33D7A4DBemteedee@193.201.53.67> <tebqkiert3yc.470l3f3qyr7p$.dlg@40tude.net> <pan.2008.04.06.21.57.55.399626@thurston.blinkynet.net> <1p0zsnptsgiab.qewegdsuncd6$.dlg@40tude.net> <Xns9A7AE0C0589E9emteedee@193.201.53.67> <a8723aa5-56f1-4002-bc8f-fab8c0f63e32@a23g2000hsc.googlegroups.co m> <Xns9A7B7B4A39758emteedee@193.201.53.67> 2604 24 Xref: amsnews11.chello.com news.software.readers:30221993 pcre filter: /^Subject: .*/ matched regexp filter: detail: "Subject: Re: Help for GG users to switch from GG" =~ /^Subject: .*/ matched ---------------------------------------------------------------- Crude, but it works. I can tell what post has been killed and figure out why, if it isn't obvious. Anyone know a better way? Tom -- The Truth will set you free: http://www.sethcenter.com
Technical Details
Message-ID:
<t29uc5xd16.ln2@treeoflife.3v8l2x.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!aioe.org!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <t29uc5xd16.ln2@treeoflife.3v8l2x.net> Subject: [LEAFNODE] Best Way To Test Filters Date: Wed, 09 Apr 2008 00:50:21 -0700 From: Tom Newton <tom@server.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!aioe.org!not-for-mail Newsgroups: news.software.readers Organization: Aioe.org NNTP Server Lines: 42 Reply-To: tom@server.invalid NNTP-Posting-Host: rZuTe0d7K+08sfgRl4wYDg.user.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/0.9.8.1 (Linux)