πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80955

Re: filter_nnrpd.pl (maybe a bug)

#80955
From: Aioe
Date: Sat, 09 May 2009 13:48
76 lines
3587 bytes
Julien Γ‰LIE wrote:

> It was an example I used.  The problem was generic and not linked
> with this specific In-Reply-To: header.  Sorry for the misunderstanding.

ok
it was unclear for me, now it's clear :-)

> C (In-Reply-To:) and D should be handled the same way.

ok
 
> For B, delete or undef work for INN 2.5.  I do not understand why
> you handle $user_agents separately.  

they don't work in the same way with INN 2.4. INN 2.4 *rejects* the article 
if an $user_agent header is deleted through *undef* because nnrpd clears its 
content without deleting it (see news://gtvjpa$ptt$1@aioe.org ).
So $user_agents *must* be deleted through 'delete' with inn 2.4. 

> Typo in your doc:  "detete" -> "delete".

fixed, thank you
 
> 
>> Beware: with inn 2.4, if the perl filter tries to delete an $user_agent
>> header using delete the article will be *rejected* by innd because
>> instead of deleting that header nnrpd cleans its content and innd doesn't
>> accept empty headers.
> 
> ??  

s/delete/undef/
it's a stupid and hard to detect error, again thank you.


>> Beware: with inn 2.4, every attempt to delete one of $system_headers
>> through 'delete' will silently discarded by nnrpd. Simply the 'delete'
>> command will have no effects without any kind of log notice.
> 
> Also with INN 2.5.

added, thank you

>> Beware: some header (notably From, Newsgroups, Subject, Xref, Path, Lines
>> and Message-ID) can't be deleted. If the perl filter tries to delete one
>> of them, the article is rejected by innd because some mandatory header is
>> missing.
> 
> ??
> Are you really sure Lines: and Xref: cannot be deleted?

i've checked now, they're deletable. 
do you know a full list of all mandatory headers? (those that are needed by 
innd)

thank you very much, if i can, i'm happy to repay you :-)



> It surprises me.
> I think Date: cannot be deleted.
> 

Technical Details
Message-ID: <gu41j3$3o0$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.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail
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> <gu28eu$33r$1@news.trigofacile.com> <gu3c93$c08$1@aioe.org> <gu3hgs$aeh$1@news.trigofacile.com> <gu3qfs$t2m$1@aioe.org> <gu3u4t$rnq$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gu41j3$3o0$1@aioe.org>
Subject: Re: filter_nnrpd.pl (maybe a bug)
Date: Sat, 09 May 2009 15:48:05 +0200
From: Aioe <estasi@aioe.org>
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> <gu28eu$33r$1@news.trigofacile.com> <gu3c93$c08$1@aioe.org> <gu3hgs$aeh$1@news.trigofacile.com> <gu3qfs$t2m$1@aioe.org> <gu3u4t$rnq$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!aioe.org!not-for-mail
Newsgroups: news.software.nntp
Followup-To: news.software.nntp
Organization: Aioe.org
Lines: 76
NNTP-Posting-Host: dWe2pIaqvPd3j3BZ5JWtNw.user.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
X-Complaints-To: abuse@aioe.org
NNTP-Posting-Date: Sat, 9 May 2009 13:48:19 +0000 (UTC)
X-Notice: Filtered by postfilter v. 0.7.8
Cancel-Lock: sha1:3hsZ2oZEdNEOflUN+JN4n4YAhpE=
User-Agent: KNode/0.99.01