🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52926

Re: problem filtering (filter_ind.pl)

#52926
From: Terrance Richard Boyes
Date: Tue, 19 Jun 2001 19:52
26 lines
2094 bytes
Terrance Richard Boyes <tez@pierrot.co.uk> wrote:

> NB this would affect all error returns, not just those
> from the filter. You could maybe just set the generic
> message on 437, which covers all the filters plus bad
> headers and so on, but would still let other errors
> be returned normally.

Even better, look at innd/art.c, in the ARTpost function,
line ~2072

    sprintf(buff, "%d %.200s", NNTP_REJECTIT_VAL, filterrc);
    syslog(L_NOTICE, "rejecting[perl] %s %s", Data.MessageID, buff);

Change the sprintf to make it like the syslog...

    sprintf(buff, "%d [perl] %.200s", NNTP_REJECTIT_VAL, filterrc);

Then in commands.c you can check that the error was returned
specifically by [perl].

-- 
<URL:http://www.pierrot.co.uk/>                                  Team AMIGA
He that would govern others, first should be the master of himself.

Technical Details
Message-ID: <20010619.195244.9E9801DE.pfaa@pierrot.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
References: <9gng16$9hjvv$1@ID-75320.news.dfncis.de> <20010619.191530.9E9801DE.oYaa@pierrot.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <20010619.195244.9E9801DE.pfaa@pierrot.co.uk>
Subject: Re: problem filtering (filter_ind.pl)
Date: Tue, 19 Jun 2001 19:52:44 +0000
From: tez@pierrot.co.uk (Terrance Richard Boyes)
References: <9gng16$9hjvv$1@ID-75320.news.dfncis.de> <20010619.191530.9E9801DE.oYaa@pierrot.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: ECL.Net
X-Trace: mail2news.demon.co.uk 992980378 mail2news:9587 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!anchor-post-32.mail.demon.net!pierrot.demon.co.uk!pierrot.co.uk!tez@pierrot.co.uk
X-Lan-Trace: news.pierrot.lan 20010619.195244 news:pfaa IDENT tez@pierrot.demon.co.uk
User-Agent: tin/1.4.3-20000502 ("Marian") (AMIGA)
X-NaMLServ: $VER: v0.9b <tez@pierrot.co.uk>
Lines: 25