๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52925

Re: problem filtering (filter_ind.pl)

#52925
From: Terrance Richard Boyes
Date: Tue, 19 Jun 2001 19:15
28 lines
2105 bytes
Christian St๏ฟฝger <christian.stoeger@einsteinet.de> wrote:
> I've got a problem with the file filter_innd.pl.
> If a posting is rejected by filter_innd.pl, the user gets an error message.
> But I don't want the server to send any error messages to the user.

> How do I have to setup inn to solve my problem?

AFAIK you can't, without hacking.

Have a look in src/nnrpd/commands.c, line ~882

    Reply("%d %s\r\n", NNTP_POSTFAIL_VAL, response);

You could hardcode the response to be some generic message.
I wouldn't recommend not sending anything at all though as
some client software /may/ barf.

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.

-- 
<URL:http://www.pierrot.co.uk/>                                  Team AMIGA
Big book, big bore.

Technical Details
Message-ID: <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.tele.dk!212.74.64.35!colt.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>

Show Full Headers
Complete Article Headers
Message-ID: <20010619.191530.9E9801DE.oYaa@pierrot.co.uk>
Subject: Re: problem filtering (filter_ind.pl)
Date: Tue, 19 Jun 2001 19:15:30 +0000
From: tez@pierrot.co.uk (Terrance Richard Boyes)
References: <9gng16$9hjvv$1@ID-75320.news.dfncis.de>
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.tele.dk!212.74.64.35!colt.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 992978151 mail2news:8894 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!finch-post-11.mail.demon.net!pierrot.demon.co.uk!pierrot.co.uk!tez@pierrot.co.uk
X-Lan-Trace: news.pierrot.lan 20010619.191530 news:oYaa 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: 27