Article View: news.software.nntp
Article #80937Re: filter_nnrpd.pl (maybe a bug)
From: Julien ÉLIE
Date: Fri, 08 May 2009 21:30
Date: Fri, 08 May 2009 21:30
71 lines
4010 bytes
4010 bytes
Hi Paolo, > $user_agents = "X\-Newsreader|X\-Mailer|User\-Agent"; > > $system_headers = "Path|From|Newsgroups|Subject|Control|Supersedes| > Followup\-To|Date|Organization|Lines|Sender|Approved|Distribution|Expires| > Message\-ID|References|Reply\-To|NNTP\-Posting\-Host|Mime\-Version|Content\- > Type|Content\-Transfer\-Encoding|X\-Trace|X\-Complaints\-To|NNTP\-Posting\- > Date|Xref|Injector\-Info|Summary|Keywords|Date\-Received|Received|Posted| > Posting\-Version|Relay\-Version|Bcc"; There are also To: and Cc:. > 2.4 2.5 > > $system_headers undef undef > > $user_agents delete undef > (delete?) > > In-Reply-To delete undef > > $all_others delete (delete?) > undef (undef) undef works fine for everything with INN 2.5. As for $user_agents, yes, delete will work with INN 2.5 but it is wiser to use undef too. In <http://www.eyrie.org/~eagle/software/inn/docs/hook-perl.html> (where the link to Postfilter has been added), there is the list of headers recognized by *innd* Perl filter (not the same as nnrpd...). If, with INN *2.4*, you undef them, they end up empty but not removed by nnrpd and innd rejects the article as you already experienced it. And if, with INN *2.4*, you delete them, then it works if they are *not* in $system_headers (nnrpd); otherwise, they are not deleted as you saw (initial subject of your thread)... > is this right? I hope my explanation were cleaner. For X-Trace:, I do not see how to remove it with INN 2.4 (delete will not work, and undef will empty it and it will be rejected by innd). For User-Agent:, delete will normally work with INN 2.4, unless I am mistaken. A suggestion I have is: * undef with INN 2.5; * set to "-" with INN 2.4. I believe it will work. Sorry for the fact it is not always possible to remove a header with INN 2.4 :-/ > postfilter is able to detect which inn version is running so it's simple to > write the code but i prefer to be sure before starting. I assume you use something like: % innconfval version INN 2.5.0 (20090505 prerelease) Do not forget INN 2.6.0 (and later) because when INN 2.5.0 is released, INN 2.6.0 will be the new CURRENT version. -- Julien ÉLIE « Le style est l'homme même. » (Buffon)
Technical Details
Message-ID:
<gu28eu$33r$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!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<gtm4q0$qtg$1@aioe.org> <gtm52j$r2k$1@aioe.org> <gtm6i9$eiq$1@tioat.net> <gtmvc6$k9a$1@aioe.org> <gtneib$eh4$1@news.trigofacile.com> <gtnioo$8ju$2@aioe.org> <gtq0p9$a7j$1@news.trigofacile.com> <gtq7ib$qm1$2@aioe.org> <gtq927$7fa$1@news.trigofacile.com> <gts4n5$e9q$1@aioe.org> <gtsj0i$e0o$1@news.trigofacile.com> <gtst92$85h$1@aioe.org> <gtsv12$trf$1@news.trigofacile.com> <gtvjpa$ptt$1@aioe.org> <gtvlut$h8q$1@news.trigofacile.com> <gu1dmt$d83$1@aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <gu28eu$33r$1@news.trigofacile.com> Subject: Re: filter_nnrpd.pl (maybe a bug) Date: Fri, 8 May 2009 23:30:42 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <gtm4q0$qtg$1@aioe.org> <gtm52j$r2k$1@aioe.org> <gtm6i9$eiq$1@tioat.net> <gtmvc6$k9a$1@aioe.org> <gtneib$eh4$1@news.trigofacile.com> <gtnioo$8ju$2@aioe.org> <gtq0p9$a7j$1@news.trigofacile.com> <gtq7ib$qm1$2@aioe.org> <gtq927$7fa$1@news.trigofacile.com> <gts4n5$e9q$1@aioe.org> <gtsj0i$e0o$1@news.trigofacile.com> <gtst92$85h$1@aioe.org> <gtsv12$trf$1@news.trigofacile.com> <gtvjpa$ptt$1@aioe.org> <gtvlut$h8q$1@news.trigofacile.com> <gu1dmt$d83$1@aioe.org> 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!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.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: 71 NNTP-Posting-Host: amontpellier-159-1-13-165.w90-57.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-15"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1241818399 3195 90.57.84.165 (8 May 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Fri, 8 May 2009 21:33:19 +0000 (UTC) In-Reply-To: <gu1dmt$d83$1@aioe.org> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049