🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72825

Re: Sender header

#72825
From: Russ Allbery
Date: Tue, 13 Dec 2005 21:33
41 lines
2952 bytes
Bill Davidsen <davidsen@deathstar.prodigy.com> writes:
> Russ Allbery wrote:
>> aioe <estasi@aioe.org> writes:

>>> this seems false
>>> nnrpd perl filter can delete headers (try:
>>> delete $hdr{'somewhat'};
>>> $hdr{'somewhat'} = undef; )

>> Those changes aren't propagated back to the article that's actually
>> posted.

> I just looked at that code, and my first thought is that the code is
> really ugly in there :-(

Yup, on my list to rewrite.

> That said, it looks as if changes get propagated back to the article, if
> not why have all that code for HeaderModified. And while the *name* of
> the header won't go away with current code, the text can certainly be
> set to a null string, which is probably all the O.P. really needs.

I think innd then rejects the message as a syntax error, and this doesn't
work with extra headers.  I didn't say that changes weren't propagated
back; I said that deletions weren't.  :)

> To make delete work in the sense of make the header go away would
> require a change in the code to verify each header still exists, a
> somewhat formidable effort given the lack of comments in that section of
> the code. Of course an option to "DELETE_EMPTY_HEADERS" would clean up
> posting in general, and provide a way to delete as a side effect.

There are much better ways to write that whole block of code, and in fact
much better ways of doing header handling in nnrpd.  Now if only I had
more time....

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87irtsy94u.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!multikabel.net!feed20.multikabel.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <di3kbp$6bk$1@news.onet.pl> <di42n3$nsj$1@puck.litech.org> <87u0dftb14.fsf@windlord.stanford.edu> <pan.2005.12.13.08.37.40.846620@aioe.org> <87hd9czzeb.fsf@windlord.stanford.edu> <lWGnf.544$kW.347@newssvr30.news.prodigy.com>

Show Full Headers
Complete Article Headers
Message-ID: <87irtsy94u.fsf@windlord.stanford.edu>
Subject: Re: Sender header
Date: Tue, 13 Dec 2005 13:33:53 -0800
From: Russ Allbery <rra@stanford.edu>
References: <di3kbp$6bk$1@news.onet.pl> <di42n3$nsj$1@puck.litech.org> <87u0dftb14.fsf@windlord.stanford.edu> <pan.2005.12.13.08.37.40.846620@aioe.org> <87hd9czzeb.fsf@windlord.stanford.edu> <lWGnf.544$kW.347@newssvr30.news.prodigy.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!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!multikabel.net!feed20.multikabel.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 41
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1134509634 5706 171.64.19.147 (13 Dec 2005 21:33:54
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.17 (linux)
Cancel-Lock: sha1:U6YNyc7DKWl7ivBOo3zajfbB/uw=