🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80915

Re: Outgoing feed filter

#80915
From: Julien ÉLIE
Date: Wed, 06 May 2009 17:22
58 lines
3550 bytes
Hi Geoff,

> I did a bunch of testing last night, and it has been running though the
> night with the patch and seems to be working properly.

That's pretty fine then.  Thanks for having thoroughly tested.


> Something else that would probably be helpful, is INN is not logging
> anywhere what articles are actually being rejected by the filter with
> dontrejectfiltered set to true, this behavior could make it a bit difficult
> to troubleshoot a filter that might be to aggressive or why a specific post
> did not get offered it to a specific peer. There probably should be some
> indication when the article is received, that it was accepted, but also
> rejected by the filter.

OK, let's use news.notice to say the article was still rejected by the filter,
as it is usually done.
Is something like the following patch what you want?


Index: innd/art.c
===================================================================
--- innd/art.c       (révision 8446)
+++ innd/art.c       (copie de travail)
@@ -2066,6 +2066,10 @@
   if (filterrc != NULL) {
     if (innconf->dontrejectfiltered) {
       Filtered = true;
+      syslog(L_NOTICE, "rejecting[python] %s %d %.200s (with dontrejectfiltered)",
+             HDR(HDR__MESSAGE_ID),
+             ihave ? NNTP_OK_IHAVE : NNTP_OK_TAKETHIS,
+             filterrc);
     } else {
       snprintf(cp->Error, sizeof(cp->Error), "%d %.200s",
                ihave ? NNTP_FAIL_IHAVE_REJECT : NNTP_FAIL_TAKETHIS_REJECT,
@@ -2093,6 +2097,10 @@
   if (filterrc) {
     if (innconf->dontrejectfiltered) {
       Filtered = true;
+      syslog(L_NOTICE, "rejecting[perl] %s %d %.200s (with dontrejectfiltered)",
+             HDR(HDR__MESSAGE_ID),
+             ihave ? NNTP_OK_IHAVE : NNTP_OK_TAKETHIS,
+             filterrc);
     } else {
       snprintf(cp->Error, sizeof(cp->Error), "%d %.200s",
                ihave ? NNTP_FAIL_IHAVE_REJECT : NNTP_FAIL_TAKETHIS_REJECT,


Have a nice day,

-- 
Julien ÉLIE

« -- À trente jours de marche, aussi il vous faudra traverser le désert !
  -- Je ne connais pas encore ce genre de traversée mais
  par Toutatis, je suis certain de m'en sortir très vite ! » (Astérix) 
Technical Details
Message-ID: <gtsh5j$c16$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <gtfajk$7q8$1@posting2.glorb.com> <gtq951$7gp$1@news.trigofacile.com> <gts44k$nbm$1@posting2.glorb.com>

Show Full Headers
Complete Article Headers
Message-ID: <gtsh5j$c16$1@news.trigofacile.com>
Subject: Re: Outgoing feed filter
Date: Wed, 6 May 2009 19:22:35 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gtfajk$7q8$1@posting2.glorb.com> <gtq951$7gp$1@news.trigofacile.com> <gts44k$nbm$1@posting2.glorb.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 58
NNTP-Posting-Host: aaubervilliers-151-1-58-234.w83-112.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1241630707 12326 83.112.31.234 (6 May 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Wed, 6 May 2009 17:25:07 +0000 (UTC)
In-Reply-To: <gts44k$nbm$1@posting2.glorb.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049