Article View: news.software.nntp
Article #28078Re: risk of UNIX postings being misidentified as spam?
From: Ed Mooring
Date: Fri, 08 May 1998 00:00
Date: Fri, 08 May 1998 00:00
53 lines
2664 bytes
2664 bytes
In article <4Z741.34$bZ4.14913@firestorm.gunslinger.net>,
Jeremy <jeremy@exit109.com> wrote:
>Chris Lewis <clewis@ferret.ocunix.on.ca> wrote:
[snip]
>> You are inside innd, why not read the active file? ;-)
>
>Unfortunately, you don't have access to anything from the Perl
>filter. You have to just read it as a file like everyone else.
>Which isn't any big deal, of course. :)
This is the third time I've seen somebody (at least implicitly) wishing
that INN's Perl filter had more access to INN's innards. Since I've
already added a message-id filter for Perl, and I've looked at the idea
of a Perl/INN interface already, I'll round up some loose tuits and
bash something together if people are interested.
As a first cut, here are some of the pieces of INN that should be
accessible to the Perl filters, along with a proposed calling
sequence.
1) Check the history database for a message-id.
INN::havehist($messageid);
returns true if $messageid is in the history database.
2) Cancel an article.
INN::cancel($messageid);
returns true if $messageid was successfully cancelled.
3) Add an article to the history database.
INN::addhistory($messageid);
returns true if $messageid was successfully added to the
history database.
4) Check to see if a newsgroup exists, and find its status.
$status = INN::newsgroup($group)
returns undef if the group is not in active, otherwise returns
the status of the group:
'y' for posting ok
'm' for moderated
'j' for junk
'=whatever' if it's aliased
This, along with a Perl interface to PGP, and the dynamic-loading patch to
INN, would be enough to implement NOCEM in the Perl filter.
If anybody has any comments or wishes to add, post and/or mail 'em. If I get
more than a couple of responses, I'll build the thing.
--
Regards,
Ed Mooring (mooring@tymnet.com 408-922-7504)
Technical Details
Message-ID:
<6iui65$rl2@arduin.Tymnet.COM>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-mailReferences:
<6io1ku$c3$1@samba.rahul.net> <pp641.33$bZ4.14697@firestorm.gunslinger.net> <6iqut8$qtq@bcarh8ab.bnr.ca> <4Z741.34$bZ4.14913@firestorm.gunslinger.net>Show Full Headers
Complete Article Headers
Message-ID: <6iui65$rl2@arduin.Tymnet.COM> Subject: Re: risk of UNIX postings being misidentified as spam? Date: Fri, 08 May 1998 00:00:00 +0000 From: mooring@arduin.Tymnet.COM (Ed Mooring) References: <6io1ku$c3$1@samba.rahul.net> <pp641.33$bZ4.14697@firestorm.gunslinger.net> <6iqut8$qtq@bcarh8ab.bnr.ca> <4Z741.34$bZ4.14913@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 X-Deja-AN: 351380306 Reply-To: mooring@tymnet.com Organization: MCI Data Services Engineering, San Jose Newsgroups: news.software.nntp