🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #224805

Re: Server Side filtering (as pertains to Google Groups)

#224805
From: Whiskers
Date: Fri, 15 Aug 2008 19:53
84 lines
5219 bytes
On 2008-08-15, VanguardLH <V@nguard.LH> wrote:
> Whiskers wrote:

[...]

>> There are NNTP commands which allow a client (including a local proxy 
>> server) to save bandwidth by only downloading the headers required for 
>> local scoring or filtering, including headers which are not included in 
>> the overview.  
>> 
>> HEAD   Return the headers of an article (all the headers).
>> 
>> XHDR   Return a certain header for a range of articles in a group.
>> 
>> XPAT   Return a range of headers for articles matched by a certain pattern.
>
> For the XPAT command (on some of the NNTP hosts where I tried it), some
> error got returned about not supporting that command, even on the same
> NNTP host which honored the HEAD command.

That's not unusual; XPAT puts a load on the server's resources, so NSPs 
understandably don't all support it.

> As a quick test, I ran:
>
> telnet news.microsoft.com 119			(anonymous login)
> help						(check if head was listed)
> group microsoft.public.windowsxp.newusers	(as a test)
> head						(using 1st post in list)
>
> Sure enough, all the headers got listed.  Now to figure out if I can get
> my NNTP client (40tude Dialog) to use the command so I can runs its
> filters when retrieving the headers (to loop through them all again to
> run 'head' and [re]apply filters).  This will probably get me stuck
> writing up another script for that client.

Have fun  :))

> Can leafnode or hamster be configured to retrieve all messages but just
> their XOVER headers, as in a normal query (so not to consume my monthly
> bandwidth) 

Yes.

> and then run 'head' against all of those message-IDs (in the
> subscribed groups) to run its filters?  

Not directly.  The software would interpret the entries in the config and 
filter files and then work out what NNTP commands and local processing to
use to achieve the desired results.  One normally only uses the NNTP 
commands directly when logged into a news-server using telnet or SSH.

I haven't used Hamster for years so I don't know how it reacts to a filter
that uses a non-overview header.  I currently use Leafnode 2 but I have
nothing in the filterfile that requires use of non-overview headers so I
don't know how it would deal with such a filter.  The mailing-lists or 
user forums relating to those programs are probably the best place to get 
definitive answers to such questions.

Leafnode 2 certainly supports HEAD XPAT and XHDR for local clients.

In principle is should be possible to write a proxy server (or newsreader,
of course) that uses the HEAD command for each article in the overview
[which has passed the filters which only rely on overview headers] and
then tries the headers against the filterfile before sending the BODY or
ARTICLE command for those articles which get past the filters.  Whether
that would be quicker than fetching all the articles and then filtering, is
another matter - for most usenetters on a dial-up, the time on line is more
likely to cost money than the volume of data as such.  

I've never used a news-server with a volume limit, but I imagine they 
would be servers which carry a lot of binary stuff and the limits wouldn't 
be significant for users interested only in text-only groups.

> Supposedly my NSP doesn't charge
> bandwidth on header-only downloads but I'm not sure running 'head'
> (versus just 'xover') would qualify as a header-only download.

Your NSP is the best resource for answering such questions.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Technical Details
Message-ID: <slrngabnm0.99l.catwheezel@ID-107770.user.individual.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!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.netfinity.fr!news.visyn.net!open-news-network.org!news.bawue.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <d9OdnYG0yOm1rjjVnZ2dnUVZ_obinZ2d@giganews.com> <bKSdnbNtuKUN4DjVnZ2dnUVZ_gidnZ2d@comcast.com> <slrngab0i0.6bv.pjr@pjr.motzarella.org> <lOSdnaxC0vhZFDjVnZ2dnUVZ_trinZ2d@comcast.com> <slrngab722.99l.catwheezel@ID-107770.user.individual.net> <9PednfxTrNVGKTjVnZ2dnUVZ_qvinZ2d@comcast.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrngabnm0.99l.catwheezel@ID-107770.user.individual.net>
Subject: Re: Server Side filtering (as pertains to Google Groups)
Date: Fri, 15 Aug 2008 20:53:36 +0100
From: Whiskers <catwheezel@operamail.com>
References: <d9OdnYG0yOm1rjjVnZ2dnUVZ_obinZ2d@giganews.com> <bKSdnbNtuKUN4DjVnZ2dnUVZ_gidnZ2d@comcast.com> <slrngab0i0.6bv.pjr@pjr.motzarella.org> <lOSdnaxC0vhZFDjVnZ2dnUVZ_trinZ2d@comcast.com> <slrngab722.99l.catwheezel@ID-107770.user.individual.net> <9PednfxTrNVGKTjVnZ2dnUVZ_qvinZ2d@comcast.com>
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!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.netfinity.fr!news.visyn.net!open-news-network.org!news.bawue.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: is an alien concept
Lines: 84
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: individual.net PNC47yflW1UbyjAhtc29Jw4CAg83REJz4rEuSsAP+h/PlAZTXx
X-Orig-Path: tavy.mobile.private!not-for-mail
Cancel-Lock: sha1:HmJW9D8EWdtedlJiLwtL1hDyoZ0=
X-Face: (8UIp\C%, 7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_
 "Pmt)1xC~QW%bU/xrlDuux";
 aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00
 xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@
 p&  g^8<z5>HA
User-Agent: slrn/pre0.9.9-94 (Linux)
X-Original-Bytes: 4997