🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Dag Erlandsen Wed, 03 Nov 1999 00:00
Does INN support scripting on new and expired articles?
#41267
Author: Dag Erlandsen
Date: Wed, 03 Nov 1999 00:00
15 lines
1159 bytes
I want to set up a news-server on Linux where I can execute a script on each
article I receive through a newsfeed and execute a script when any article
is deleted (where the msgID for the article which is deleted is passed to my
script).

Does INN support this?

-=-=-=-=-=-=-=-=-=-=-=-
Dag Erlandsen
mailto:dag@erlandsen.no
http://www.erlandsen.no



Re: Does INN support scripting on new and expired articles?
#41243
Author: 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.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads