[ Statistics | Docs | Software ]

News-related Software on detebe.org

Rejected groups list by peer (innd 2.2)
Elmi's autoresponder
Elmi's rpost-Preprocessor (inn2.x-enabled)
Header-Weed-Out-Patch against NNTPCache 2.3.3

Jonas Luster's autoresponder (inn2.x-enabled by myself)

Other people's software

Lutz Donnerhacke (feedstat.*, pgpverify)


Rejected groups list by peer (innd 2.2)
This script reads a "news" innd log file on stdin and outputs the list of rejected groups with article count on stdout. Limitable to the top xxx entries. Not very elegant yet, but works (I run it five minutes before nightly expiry) and improving. Pretty tool for showing who's delivering crap (or should update their active).

Hint: Performance improves if you change the command

    getrejectsbypeer ... < ~news/log/news
    
to
    grep -i 'unwanted newsgroup' ~news/log/news | getrejectsbypeer ...
    

[1.1] Version 1.1 can take a Perl RegExp as an ignore filter like in -i 'jobs|^tw'. Don't forget the single quotes ;-).

getrejectsbypeer-1.1 (Feb 10, 2000)
getrejectsbypeer-1.0 (Feb 7, 2000)

Usenet article autoresponder
This is a little PERL script that enables your server to reply to test articles. It comes with (and it needs) a message file to be sent back to the posting's originator.

Although I invested quite some time into Jonas' script (see below), I prefer this one, since I've written it from scratch (based on my experiences with the one I used before) and incorporated a couple of remarks (esp. by Teddy).

autoresponder-1.0.pl (Feb 19, 1999)

autoresponder-1.1.pl (Feb 20, 1999)
(more documentation, and this one reads innshellvars.pl)

autoresponder-1.2.pl (Oct 21, 1999)
(uses sendmail "-f" option to change sender - for bounces)

autoresponder-1.2+CFB2.pl (sometime 2002)
(uses sendmail "-f" option to change sender - for bounces)
This is Cord Beermann's extended version, implementing some rate limiting and group specific templates. You will need to set up .autoresponder.msg files for each newsgroup participating.

autoresponder.msg (Feb 19, 1999)
(required; this is what I send back to the user [derived from Jonas' message]; note the %%...%% variables)

Grab it and suit it to your needs, provided you keep the credits. If you have any additions to it, just notify me.

Please note: The following versions are untested - and authored by the master of desaster, Boris "pi" Piwinger (3.14@detebe.org).

pi-autoresponder-1.3.pl (Nov 9, 1999)
(recognizes stop words in Subject even when MIME encoded)

pi-autoresponder-1.31.pl (Nov 12, 1999)
(MIME-headers will be treated properly, requires MIME::Words, to install type:
perl -MCPAN -e 'install MIME::Words'
This uses the module CPAN which is part of the standard distribution)

pi-autoresponder-1.32.pl (Feb 2, 2000)
(minor improvements)

TODO

  • %%variable%% documentation (well, isn't Perl self-documenting?)


Jonas Luster's usenet article autoreflector
This PERL script was originally written by Jonas Luster, changed a bit by Robert Kiessling and adopted to inn2.x by myself, Elmar K. Bins. This version works with inn2.x's storage-api.

reflektor-1.0.pl (Feb 19, 1999)

Grab it and suit it to your needs, provided you keep the credits. If you use it and/or have any additions to it, please notify us.


rpost preprocessor for inn2.x
This script enables you to feed articles by posting them at the target news server. I wrote this tool to insert private hierarchies like "redhat.*" into my own spool and have the articles go upstream afterwards. You need "rpost" from the "suck" package to use it.

rpostarticle-1.0.pl (Feb 19, 1999)

rpostarticle-1.1.pl (Feb 20, 1999)
(more documentation, reads innshellvars.pl, prints date in log)

rpostarticle-1.2.pl (Feb 22, 1999)
(this one can process batches; ATTN: cmdline syntax has changed)

rpostarticle-1.3.pl (Feb 22, 1999)
(cmdline-option "-a" enables storage api; ATTN: don't forget to add)

Grab it and suit it to your needs, provided you keep the credits. If you have any additions to it, just notify me.

Please note: The following versions are untested - and authored by the master of desaster, Boris "pi" Piwinger (3.14@detebe.org).

pi-autoresponder-1.3.pl (Nov 9, 1999)
(recognizes stop words in Subject even when MIME encoded)

pi-autoresponder-1.31.pl (Nov 12, 1999)
(MIME-headers will be treated properly, requires MIME::Words, to install type:
perl -MCPAN -e 'install MIME::Words'
This uses the module CPAN which is part of the standard distribution)

pi-autoresponder-1.32.pl (Feb 2, 2000)
(minor improvements)

TODO
- source code documentation


Header-Weed-Out-Patch against NNTPCache 2.3.3
This is a unified diff against post.c from NNTPCache 2.3.3, which cleans unnecessary and disturbing headers from articles posted via NNTPCache, and adds a "X-NNTP-Posting-Host:" header with the actual client's IP address.

Headers removed (or "not produced") are:

Message-ID:This is the upstream server's job (most of the time).
Cache-Post-Path:Replaced by "X-NNTP-Posting-Host:" in a better-suited fashion (IP address vs. reverse name).
X-Cache:Nobody else's concern, in my opinion.

nntpcache-2.3.3-post.c.diff (Jun 15, 1999)
just have it "patch" post.c.

Grab it and use it (but don't tell the NNTPCache folks that I stole their headers ;-)). If anybody wants do make these thingies configurable (via nntpcache.config or, even better, nntpcache.servers), please let met know.