Thread View: news.software.nntp
2 messages
2 total messages
Started by Andreas Steffan
Thu, 16 Oct 1997 00:00
Perl-hook abuse
Author: Andreas Steffan
Date: Thu, 16 Oct 1997 00:00
Date: Thu, 16 Oct 1997 00:00
28 lines
1558 bytes
1558 bytes
Hi
Since I'm tired of searching the usenet for Follow-ups on my articles,
I considered INN's perl-hook for doing the job.
I modified filter_nnrpd.pl to log the Message-ID's of my postings to disk.
Since I use rnews to feed INN, I wonder if its possible to make an
array containg these Message-ID's available to the filter_art function
in filter-innd.pl without opening/closing the file in that function.
I don't want to the latter, since that would be done for each article,
and therefore cause unnecessary load.
Any suggestions are appreciated.
--
Regards Andreas
PS: Please also reply via email.
Remove the 'dont.spam.me.' from my adress when replying.
+-----------------------------------------------------------------+
| Andreas Steffan email: deas@rrz.uni-hamburg.de|
| Hamburg, Germany |
+-----------------------------------------------------------------+
finger p25a003@server2.rrz.uni-hamburg.de for PGP-public-key.
Re: Perl-hook abuse
Author: Jeff Garzik
Date: Thu, 16 Oct 1997 00:00
Date: Thu, 16 Oct 1997 00:00
35 lines
1553 bytes
1553 bytes
(cc'd to author)
Andreas Steffan <deas@dont.spam.me.rrz.uni-hamburg.de> wrote:
>Since I'm tired of searching the usenet for Follow-ups on my articles,
>I considered INN's perl-hook for doing the job.
>I modified filter_nnrpd.pl to log the Message-ID's of my postings to disk.
>Since I use rnews to feed INN, I wonder if its possible to make an
>array containg these Message-ID's available to the filter_art function
>in filter-innd.pl without opening/closing the file in that function.
>I don't want to the latter, since that would be done for each article,
>and therefore cause unnecessary load.
I'm still not sure what you actually want to do here :), but you can
use the Perl hook's filter_mode function for opening and closing
files. The code would look something like
filter_mode {
if ( %mode {'NewMode'} =~ /running/io ) {
# open file....
} else {
# close file....
}
}
Just make sure you throttle innd before shutdown!
Jeff
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