🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72315

Re: filtering algorithm

#72315
From: Allen Brunson
Date: Sat, 24 Sep 2005 03:57
32 lines
2652 bytes
Curt Welch wrote:
> XPAT is not supported on all servers (same reason NEWNEWS isn't - it can
> consume too many resources and tends to be abused), and on others, it only
> supports the headers which are in XOVER so XPAT doesn't always help if you
> are trying to search on none XOVER headers. (XPAT is just a bad design to
> begin with).

okay then, no XPAT.

>> 3) use XHDR to get matching headers/articles.
>
> Likewise, some servers only support the XOVER headers for XHDR.

can you qualify "some?"  10 percent, 50 percent, 80 percent?

i'm trying to decide if it would be worthwhile to write code that tries XHDR
and then falls back to something else, or just immediately fall back to
something else.

> If you can filter sets of binary posts by doing a header only on the first
> article from each set, then that might be useful. But to try and do header
> fetches on 100,000 headers to filter a binary group will never work.

well, i'm not trying to do "xbin on the client" or anything severe like that.
this will be for things like "killfile this thread," "auto-download bodies for
all replies to my posts," etc.  some people get really bent out of shape over
morphing trolls, i've noticed, and would like to filter on one of those
headers that some news servers supply that give the IP address of the poster.
and while HEAD might be slow, it's definitely faster than getting the whole
article, which is what i'm currently doing in most cases, and then applying
the filtering in a killfile-like fashion to get rid of stuff the user doesn't
want to see.
Technical Details
Message-ID: <PM0004017C87959F07@remy.nashville.comcast.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!pln-w!spln!rex!extra.newsguy.com!newsp.newsguy.com!news1
References: <PM0004016A591AD163@remy.nashville.comcast.net> <20050923204014.201$oA@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <PM0004017C87959F07@remy.nashville.comcast.net>
Subject: Re: filtering algorithm
Date: Sat, 24 Sep 2005 03:57:54 +0000
From: Allen Brunson <brunsona@takethisout.newsguy.com>
References: <PM0004016A591AD163@remy.nashville.comcast.net> <20050923204014.201$oA@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!pln-w!spln!rex!extra.newsguy.com!newsp.newsguy.com!news1
Newsgroups: news.software.nntp
Organization: Anterior Solenoids
Lines: 32
NNTP-Posting-Host: p-781.newsdawg.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
User-Agent: Pineapple News/0.8.0 (Mac OS X 10.3.9)
X-Registered-To: Retina Q. Spirochetes
X-Program-URL: http://www.platinumball.net/pineapple/news/macosx/