🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #33325

Re: XHDR path doesn't work in INN 2.2 ?

#33325
From: Mark Burkley
Date: Thu, 26 Nov 1998 00:00
68 lines
4039 bytes
usenet@oneill.net (Clayton O'Neill) wrote:

>On Thu, 26 Nov 1998 11:41:05 GMT, Mark Burkley <mburkley@iol.ie> wrote:
>|usenet@oneill.net (Clayton O'Neill) wrote:
>|>The problem is that the RFC doesn't allow for this behavior and there is no
>|>return code for "Header not found" or "Header not searchable".  I could make
>|>it return a 501 or 502 code, but is your code ready to handle that?
>|
>|A 4xx code would probably be more appropriate.  I could handle either
>|4xx or 5xx.  The question is where to go from there.  Currently, if I
>|get anything other than 221 I abort the whole operation.
>
>It looks like either a "500 Syntax error or bad command" or "501 Bad
>command use" is the appropriate way to handle this.  Which would you prefer? 

I've no preference at all.  If I don't get a "221" I'll just warn the
user that it won't work.  That would be an improvement on the current
situation where it just silently continues but doesn't filter. 

>|At the moment all I can do is tell people "sorry, this filter won't
>|work with your news server".  I don't really want to implement a fall
>|back where it pulls the *entire* header for each article because that
>|would defeat the whole purpose of the exercise, especially since with
>|the articles you're filtering, the header is often bigger than the
>|body.
>
>Well, it'd still be better than downloading the entire message.  Not much
>better, but better than nothing.
>
>|I can see XHDR would load the server.  I guess I was thinking in terms
>|of saving network traffic, not in terms of server disk load.  From an
>|end user's perspective the modem is the bottleneck.
>
>Yeah, I can see where NFilter would be useful.  I was planning on taking a
>look at it myself. :)

Please do.  It's created quite a bit of interest, more than I expected
to be honest.  It seems to be especially popular with readers of ARS
who seem to be under attack the most these days.

>|Adding more fields to the XOVER isn't the answer either because then
>|you're forcing everyone to download extra info with the overview.
>|
>|Pity really, because to do decent filtering you really do need access
>|to PATH and NNTP-POSTING-HOST to avoid morphers and the like.
>
>Well, I could probbly start indexing on Path and NNTP-Posting-Host, but the
>it'll bloat the overview database a lot, and it'll only solve the problem
>for those two headers.  I'd probably not add them to the XOVER response
>regardless since I doubt that all clients would handle the longer lines or
>the two extra fields in the response gracefully.

There doesn't seem to be any ideal solution.  I was hoping to be
completely transparent so that no changes had to be made on the server
side or client side, but it looks like it's not going to work in all
situations if that's the case.  Or it will work but create a
substantial load on the server which isn't desirable either.

If anyone has any ideas on a compromise, I'll gladly change my code.

>FWIW, It looks like Typhoon has similar behavior, and from the short read of
>the Diablo source,it looks like it also, does, but I'm not sure.   Matt, can
>you fill us in here?

--
Mark Burkley                    mburkley @ { iol.ie | tecnomen.ie }

Technical Details
Message-ID: <365e83ab.185546992@localhost>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <36784cef.105998317@localhost> <slrn75ppt4.b5u.usenet@luser.oneill.net> <36673cc5.167396293@localhost> <slrn75qt2f.bic.usenet@luser.oneill.net>

Show Full Headers
Complete Article Headers
Message-ID: <365e83ab.185546992@localhost>
Subject: Re: XHDR path doesn't work in INN 2.2 ?
Date: Thu, 26 Nov 1998 00:00:00 +0000
From: mburkley@iol.ie (Mark Burkley)
References: <36784cef.105998317@localhost> <slrn75ppt4.b5u.usenet@luser.oneill.net> <36673cc5.167396293@localhost> <slrn75qt2f.bic.usenet@luser.oneill.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.mbox.zip!not-for-mail
X-Deja-AN: 415938563
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Tecnomen Ltd.
Mime-Version: 1.0
Reply-To: mburkley@iol.ie
Newsgroups: news.software.nntp