Article View: news.software.nntp
Article #80920Re: Outgoing feed filter
From: Geoff Brozny
Date: Wed, 06 May 2009 19:36
Date: Wed, 06 May 2009 19:36
67 lines
3362 bytes
3362 bytes
Julien ÉLIE wrote:
> 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.
Your wlcome.
>
>
>> 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,
>
That should be perfect.
thanks,
geoff
Technical Details
Message-ID:
<gtsosf$p1v$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.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news2.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mailReferences:
<gtfajk$7q8$1@posting2.glorb.com> <gtq951$7gp$1@news.trigofacile.com> <gts44k$nbm$1@posting2.glorb.com> <gtsh5j$c16$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gtsosf$p1v$1@posting2.glorb.com> Subject: Re: Outgoing feed filter Date: Wed, 06 May 2009 15:36:40 -0400 From: Geoff Brozny <gbrozny@glorb.columbus.oh.us> References: <gtfajk$7q8$1@posting2.glorb.com> <gtq951$7gp$1@news.trigofacile.com> <gts44k$nbm$1@posting2.glorb.com> <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.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news2.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail Newsgroups: news.software.nntp Organization: Glorb Internet Services, http://www.glorb.com Lines: 67 NNTP-Posting-Host: Z5mHg/yTvCiWQNqJ+lRfSQ.user.posting2.glorb.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@glorb.com NNTP-Posting-Date: Wed, 6 May 2009 19:36:47 +0000 (UTC) X-Notice: Scanned by Mr. Bill User-Agent: Thunderbird 2.0.0.18 (X11/20081120)