Article View: news.software.nntp
Article #80882Re: filter_nnrpd.pl (maybe a bug)
From: Julien ÉLIE
Date: Mon, 04 May 2009 19:07
Date: Mon, 04 May 2009 19:07
39 lines
2294 bytes
2294 bytes
Hi Aioe,
> $hdr{'X-Trace'} = undef works
as well as
$hdr{'X-Trace'} = '';
> but X-Trace in the *only* header that can't be deleted using 'delete'.
No, there are other headers like X-Complaints-To, Keywords, Organization,
Path, Subject, etc.
nnrpd has a list of "known" headers. They are treated separately
and delete is not enough to remove them. In fact, nnrpd does not
see removed headers (delete $hdr{'X-Trace'} removes this entry from
%hdr whereas other operations like assigning it to '' or undefining it
keeps the entry in %hdr and therefore nnrpd can catch it).
I have just changed the documentation of Perl hooks to say how to
delete a header.
Incidentally, I have also fixed a bug when you do:
$hdr{'In-Reply-To'} = '';
or
$hdr{'In-Reply-To'} = undef;
It generated an *empty* header :
In-Reply-To: \r\n
Now, it totally removes it.
--
Julien ÉLIE
« Timeo Danaos et dona ferentes. » (Laocoon de Virgile)
Technical Details
Message-ID:
<gtneib$eh4$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!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>Show Full Headers
Complete Article Headers
Message-ID: <gtneib$eh4$1@news.trigofacile.com> Subject: Re: filter_nnrpd.pl (maybe a bug) Date: Mon, 4 May 2009 21:07:34 +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> 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!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 39 NNTP-Posting-Host: aaubervilliers-151-1-58-234.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1241464203 14884 83.112.31.234 (4 May 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Mon, 4 May 2009 19:10:03 +0000 (UTC) In-Reply-To: <gtmvc6$k9a$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