Article View: news.software.readers
Article #149414Re: [Xnews] HELP - Selectivly allowing cross-posts?
From: Tech Zero
Date: Sat, 05 Jun 2004 20:15
Date: Sat, 05 Jun 2004 20:15
61 lines
3733 bytes
3733 bytes
The voice of ""Q"" drifted in on the cyber-winds,
from the sea of virtual chaos...
>> So I did what I've done before, and spent the last few days
>> (read: sleepless nights) beefing up my Score.ini,
>
> You are one tenacious dragon!
Well... I'm actually between dragons... But that's another story.
>> which lead me to my question: Is there a way to selective allow
>> cross-posts to only certain groups in a single line entry?
<snip>
> If I'm reading you correctly (just started first cup of coffee), I
> think this will do what you want:
>
> Xref: (?!.*?(furry|magick|mythology))(.*?:){2}
Yep, this works...
But on retrospect there are only three posts that it affects, all from
last year, so I could get away with just "(.*:){2}". That doesn't make
the question any less valid, just academic.
> That's a relatively expensive Regex; it may require looking
> through the entire field up to four times. Maybe limit it to the
> one server which carries the problem posts.
Since I'm pulling from my own sever, I can't limit it...
At lest not from within Xnews at in any case (evil thoughts brewing).
But there's no shortage of processing power here, and since the
server's "local" (sitting next to Voxie here) there's not real penalty
for filtering on any header. Plus I get the added benefit of being
able to read my subscribed groups "even" when the shpxvat cable
connection is down (like right now).
I may sit down and create a few SPAM filters for Dnews, to kill em
at the server. But that's an exorcise for another day.
>> I suspect it has something to do with PCRE "Look ahead/behind
>> assertion", but I've just started use those Regex entries, and
>> the first few tests (read: dozen of so) didn't work as expected.
>
> As you can see above, I think a negative lookahead is the way to
> go. Since we don't know where in the string
> (furry|magick|mythology) may occur, I used (?!.*? at the
> beginning, to look through the entire string.
>
> Lookbehinds are a PiTA, at least for me, because of the limitation
> of looking for a string of fixed length. I find I never need
> positive lookaheads/behinds for Xnews scoring, only negative ones.
> I don't use them much, and can't think of any further possibly
> useful comments to make.
I don't know...
There are allot of times when you need to reverse an entry to get
things to work, so it's nice to have positive assertion available.
But I can't think of a reason why I'd need it right now.
--
The Tech Zero, Maxx Pollare - Back into the Keys of Xnews...
Technical Details
Message-ID:
<Xns94FF9108073F7ZeroOne@raven.dragonfur.ca>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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<Xns94FF2A78E722FZeroOne@raven.dragonfur.ca> <MrQ94FF50D66AB90itsmeitsQ@QsFQDN.dyndns.org>Show Full Headers
Complete Article Headers
Message-ID: <Xns94FF9108073F7ZeroOne@raven.dragonfur.ca>
Subject: Re: [Xnews] HELP - Selectivly allowing cross-posts?
Date: Sat, 05 Jun 2004 20:15:26 +0000
From: Tech Zero <spamnet-june@dragonfur.ca>
References: <Xns94FF2A78E722FZeroOne@raven.dragonfur.ca> <MrQ94FF50D66AB90itsmeitsQ@QsFQDN.dyndns.org>
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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Lines: 61
X-Trace: news.uni-berlin.de q/s5CE1ms04wxPD3pjKCVgc3363XM6F8/fqHK2g1N3jqmB6hMx
User-Agent: Xnews/06.01.10
X-Face: }2a:86~fids1(+)NSk]$?SqH(7<%l,URI]qy%%.4O]rYF&7aeXt,vC%i`TGlSWHr&v]amN[1^X"p0$?&3`az-l>nq\y5}ADu+TJ%\{[)`H"X}yx`zpMe^V*JyI~)WcA-6Mb#Qh>}?{cyxK!"G\#"I5&H\FrFy[c9usZ<#'"nvV[;
34_qR9](uXc,NLS?JRGg/.&1=