🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40703

Re: Diablo debugging problems...

#40703
From: Russ Allbery
Date: Fri, 08 Oct 1999 00:00
39 lines
2634 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
>>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

>  Russ> Then the filter API would look a lot like the one that INN
>  Russ> already provides, which is pretty close to ideal for the author
>  Russ> of a filter

> Actually it sucks; having to recompile just to add a new header that INN
> didn't previously know about is a pain.

The interface to headers leaves a bit to be desired, yes.  To me, that's
an implementation aspect of the current interface rather than an intrinsic
property of the interface (namely, getting the headers as a hash); you
could certainly implement it as a tied hash with some preloaded values
that will fetch any other header you want on demand.

We could also just provide the raw headers as well as the raw body, which
would probably be a good idea.

(The other annoyance about the current header parsing code is that it
doesn't handle the case of duplicated headers.  That's a real defect.)

My point, though, is that when I'm writing a filter, I want access to the
active file if relevant, the history file, have the ability to retrieve
other articles if I want to (although you normally don't want to,
obviously, for speed reasons), and don't want unnecessary copying going on
to get the article to me.  I also don't want to be redoing work that INN
is already doing anyway.

My opinion is that the Highwind external filter interface is the *worst*
case for a filter interface; it's basically the barest and simplest
possible way of tying a filter into the server and you have very little in
the way of an interface to the rest of the news system.  I want the server
to do more work for me than that; writing filters should be *easy*.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <yl905d5al5.fsf@windlord.stanford.edu>
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: <brad-0110991517500001@brad.techos.skynet.be> <yln1twf21z.fsf@windlord.stanford.edu> <brad-0710991318130001@brad.techos.skynet.be> <37fe9461$0$11999@master.news.zetnet.net> <37fec25d$0$11285@news.execpc.com> <ylr9j5m9n5.fsf@windlord.stanford.edu> <87r9j56qmt.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <yl905d5al5.fsf@windlord.stanford.edu>
Subject: Re: Diablo debugging problems...
Date: Fri, 08 Oct 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <brad-0110991517500001@brad.techos.skynet.be> <yln1twf21z.fsf@windlord.stanford.edu> <brad-0710991318130001@brad.techos.skynet.be> <37fe9461$0$11999@master.news.zetnet.net> <37fec25d$0$11285@news.execpc.com> <ylr9j5m9n5.fsf@windlord.stanford.edu> <87r9j56qmt.fsf@erlenstar.demon.co.uk>
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: 534602040
Organization: The Eyrie
Newsgroups: news.software.nntp