🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #70606

Re: Xnews: How to limit xref number for one group only?

#70606
From: Tom B.
Date: Tue, 16 Jan 2001 23:56
33 lines
2210 bytes
Murray Peterson wrote ...

> bbbobnorton@earthlink.net (Bob Norton) wrote:
> 
> >Thanks, I came up with something fairly elegant that seems to work
> >almost all of the time. A few seem to get by which must be a
> >program glitch but it catches 99.9% of them.
> >
> >[groupname]
> >Score:: -9999
> >Xref: \d\W
> >
> >If there's only one group it won't have blank space after the
> >number. 
> >
> >I'll try yours and see if it works better.
> 
> Yours will work (most of the time), but only for crossposting to more 
> than one group.  It has two problems:
> 
> 1. Sometimes the Xref header may have a trailing space
> 2. You may want to block postings which are cross-posted to more than 
> two groups (or three, or four).

Cant you just count the colons? I don't use xnews but this RE seems to 
match in perl for more than one group (any number) in Xref: 

:.*:

-- 
Tom B.     * * * Gravity Pages * * *
http://www.naplesfl.net/~tbates/gravity/
Technical Details
Message-ID: <MPG.14cea9e6abb085d0989743@news.se.mediaone.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.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!pln-w!extra.newsguy.com!lotsanews.com!cyclone.tampabay.rr.com!newsfeed.se.mediaone.net!typhoon.jacksonville.mediaone.net.POSTED!not-for-mail
References: <Xns9027D0A4AfsepADFJASDU@207.217.77.23> <Xns902810B63farkle@24.64.2.57> <Xns902986DD3fsepADFJASDU@207.217.77.23> <Xns90298134Dfarkle@24.64.2.57> <Xns902A98F8farkle@24.64.2.57> <Xns902ACA68CfsepADFJASDU@207.217.77.23> <Xns902ACBCC1farkle@24.64.2.57>

Show Full Headers
Complete Article Headers
Message-ID: <MPG.14cea9e6abb085d0989743@news.se.mediaone.net>
Subject: Re: Xnews: How to limit xref number for one group only?
Date: Tue, 16 Jan 2001 23:56:54 GMT
From: Tom B. <nfn03862@naples.net>
References: <Xns9027D0A4AfsepADFJASDU@207.217.77.23> <Xns902810B63farkle@24.64.2.57> <Xns902986DD3fsepADFJASDU@207.217.77.23> <Xns90298134Dfarkle@24.64.2.57> <Xns902A98F8farkle@24.64.2.57> <Xns902ACA68CfsepADFJASDU@207.217.77.23> <Xns902ACBCC1farkle@24.64.2.57>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!pln-w!extra.newsguy.com!lotsanews.com!cyclone.tampabay.rr.com!newsfeed.se.mediaone.net!typhoon.jacksonville.mediaone.net.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: tbates
X-Newsreader: MicroPlanet Gravity v2.50
Lines: 32
NNTP-Posting-Host: 24.129.25.172
X-Complaints-To: abuse@mediaone.net
X-Trace: typhoon.jacksonville.mediaone.net 979689414 24.129.25.172 (Tue, 16 Jan 2001 18:56:54 EST)
NNTP-Posting-Date: Tue, 16 Jan 2001 18:56:54 EST