🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #27082

Re: Use of startup_innd.pl filter

#27082
From: Jeremy
Date: Sat, 21 Mar 1998 00:00
35 lines
2110 bytes
Russ Allbery  <rra@stanford.edu> wrote:

> When I first looked at the documentation of this, my thought was
> "cool, I can save my cache of message IDs and my hash of rejecting
> MD5 signatures when the server shuts down and reload them when the
> server restarts, and I don't have to lose all my filter history."
> Then, reading the documentation, I couldn't find any way to run
> something before the server shuts down (with ctlinnd shutdown).
> 
> Am I missing something, or is there no way to use this to do what I
> want?

filter_end, apparently.  I have some good stuff for this in my "Good
Stuff People Have Sent Me But I Haven't Implemented Yet" file.

Or, you can just always throttle before shutting down, which I've found
to be a good idea anyway, despite the fact that my server no longer wants
to cooperate with me on this.

> (I also fail to see the point of filter_after_reload.  What does
> this gain me over code in filter_innd.pl that isn't inside a sub and
> therefore runs when the Perl script is loaded?

I haven't quite figured this out either, except the slight possibility that
you might want to call the filter_after_reload code at some other time too,
but there would be better ways to do that too.  However, it was a while
before I realized that code outside the subs would get executed on each
reload...

-- 
Jeremy  |  jeremy@exit109.com
The customer is always right, until he tries to say something.

Technical Details
Message-ID: <OVVQ.4$TR5.1303@firestorm.gunslinger.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
References: <m367l85nm5.fsf@windlord.Stanford.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <OVVQ.4$TR5.1303@firestorm.gunslinger.net>
Subject: Re: Use of startup_innd.pl filter
Date: Sat, 21 Mar 1998 00:00:00 +0000
From: Jeremy <jeremy@exit109.com>
References: <m367l85nm5.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
X-Deja-AN: 336351416
NNTP-Posting-Date: Sat, 21 Mar 1998 16:02:38 EST
Originator: jeremy@exit109.com (Jeremy)
Organization: Still working on it...
Newsgroups: news.software.nntp