🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41243

Re: Does INN support scripting on new and expired articles?

#41243
From: Andrew Gierth
Date: Wed, 03 Nov 1999 00:00
22 lines
1720 bytes
>>>>> "Dag" == Dag Erlandsen <d-erland@online.no> writes:

 Dag> I want to set up a news-server on Linux where I can execute a
 Dag> script on each article I receive through a newsfeed and execute
 Dag> a script when any article is deleted (where the msgID for the
 Dag> article which is deleted is passed to my script).

 Dag> Does INN support this?

You can execute scripts for arriving articles either by using the
internal (Perl or Tcl) filter hooks or by using a channel feed.

Keeping track of expired articles is harder (especially with CNFS
where articles are overwritten on the fly). I can't think of an easy
way (though with traditional spool I suppose you could hack things
into the expire script in between the preparation of the list of
filenames to delete and the actual running of fastrm to delete them).

-- 
Andrew.

Technical Details
Message-ID: <87vh7k2zcd.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
References: <P%KT3.549$Vd1.4345@news1.online.no>

Show Full Headers
Complete Article Headers
Message-ID: <87vh7k2zcd.fsf@erlenstar.demon.co.uk>
Subject: Re: Does INN support scripting on new and expired articles?
Date: Wed, 03 Nov 1999 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <P%KT3.549$Vd1.4345@news1.online.no>
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: 543744404
X-Mayan-Date: Long count = 12.19.6.12.1; tzolkin = 2 Imix; haab = 9 Zac
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha