Article View: news.software.nntp
Article #65563Re: INN: Filtering incoming and moving some elsewhere
From: greg andruk
Date: Fri, 30 May 2003 00:17
Date: Fri, 30 May 2003 00:17
29 lines
2819 bytes
2819 bytes
Russ Allbery <rra@stanford.edu> writes: > Marcus M�nnig <dialog@40tude.com> writes: > >> I basically want to look at all incoming article headers from a >> (header-only) feed, not add any of them to their group(s), but if some >> patterns match on the article header I want to store them in a >> local.somename group. > > I don't think it would be easy to do this with INN. Well sure, but nothing's easy with INN. Isn't that kind of the point? It's possible to edo what Marcus wants with INN 2.4, if the remote site is handed to nnrpd instead of innd. A tiny patch to post.c may be necessary, depending on what's in the local active file. In readers.conf, the remote host will need to get ihave permission, of course. Such articles are passed to filter_nnrpd.pl, and if $modify_headers is set in there, the Newsgroups: header can be changed as desired. Why a patch may be needed? In nnrpd/post.c, ValidNewsgroups() is called twice before HandleHeaders() happens. This means that the server will reject newsgroups not in active before the nnrpd filter has a chance to make its changes. Possible workarounds are to comment out the checks, move them to after the DO_PERL section, or leave the code alone and add the newsgroups of interest to active.
Technical Details
Message-ID:
<m2of1lcmpm.fsf@meowing.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!news.stealth.net news.stealth.net!news.stealth.net!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny03.gnilink.net.POSTED!53ab2750!not-for-mailReferences:
<15f091scris06.dlg@40tude.com> <ylbrxl1jpi.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <m2of1lcmpm.fsf@meowing.net>
Subject: Re: INN: Filtering incoming and moving some elsewhere
Date: Fri, 30 May 2003 00:17:12 GMT
From: greg andruk <gja@meowing.net>
References: <15f091scris06.dlg@40tude.com> <ylbrxl1jpi.fsf@windlord.stanford.edu>
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!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!news.stealth.net news.stealth.net!news.stealth.net!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny03.gnilink.net.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.nntp
X-Face: ')Fflcs!^R}Ds420ESFBO$}^v}i=A9jhnT\3.x#V)XnBrjF8FDwO).{#sN<#bI#A0Y-IU>I iz^}DhL#8nvP8,Ef*_4tdZUl#gwDK=7]>l"53tML>J1S8!)4vsDuy8j0]Rx
X-No-Repost: yes
Injector-Info: http://www.halfbakery.com/idea/Tarantula_20injector
Mail-Copies-To: nobody
X-Meow: Wouf
Organization: none
User-Agent: Gnus/5.090016 (Oort Gnus v0.16) XEmacs/21.4 (Portable Code,
linux)
X-Draft-From: ("news.software.nntp" 15486)
Cancel-Lock: sha1:Z3b4bpqk8y7FyLasT8HNiBod4Xw=
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Lines: 28
NNTP-Posting-Host: 151.199.22.229
X-Complaints-To: abuse@verizon.net
X-Trace: nwrdny03.gnilink.net 1054253832 151.199.22.229 (Thu, 29 May 2003 20:17:12 EDT)
NNTP-Posting-Date: Thu, 29 May 2003 20:17:12 EDT