Article View: news.software.nntp
Article #72832Re: Sender header
From: Bill Davidsen
Date: Wed, 14 Dec 2005 18:31
Date: Wed, 14 Dec 2005 18:31
56 lines
3603 bytes
3603 bytes
Russ Allbery wrote:
> 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....
>
Okay, you talked me out of it ;-) I never argue when someone says
something is on THEIR 2do list instead of mine. Since I don't have the
problem, I can live without the solution, I just won't look at the code
right after I eat.
--
bill davidsen
SBC/Prodigy Yorktown Heights NY data center
http://newsgroups.news.prodigy.com
Technical Details
Message-ID:
<YxZnf.3881$nA2.2247@newssvr22.news.prodigy.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr22.news.prodigy.net.POSTED!1055e9ad!not-for-mailReferences:
<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> <87irtsy94u.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <YxZnf.3881$nA2.2247@newssvr22.news.prodigy.net> Subject: Re: Sender header Date: Wed, 14 Dec 2005 18:31:20 GMT From: Bill Davidsen <davidsen@deathstar.prodigy.com> 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> <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!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr22.news.prodigy.net.POSTED!1055e9ad!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <87irtsy94u.fsf@windlord.stanford.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 56 NNTP-Posting-Host: 207.115.54.38 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr22.news.prodigy.net 1134585080 ST000 207.115.54.38 (Wed, NNTP-Posting-Date: Wed, 14 Dec 2005 13:31:20 EST Organization: SBC http://yahoo.sbc.com X-UserInfo1: [[PAPDCA[S@US\TYARKXK_@@FBYFRM@OMPUT_FMNJZ]BGIELNVUEAE[YETZPIWWI[FCIZA^NBFXZ_D[BFNTCNVPDTNTKHWXKB@X^B_OCJLPZ@ET_O[G\XSG@E\G[ZKVLBL^CJINM@I_KVIOR\T_M_AW_M[_BWU_HFA_]@A_A^SGFAUDE_DFTMQPFWVW[QPJN