Article View: news.software.nntp
Article #81649Re: Hiding the X-Trace Header
From: Julien ÉLIE
Date: Wed, 22 Jul 2009 06:20
Date: Wed, 22 Jul 2009 06:20
47 lines
2632 bytes
2632 bytes
Hi Michael,
>> There is no built-in support for suppressing generation of the X-Trace
>> header. You can, however, remove it from inside a Perl posting filter.
>> Try using a posting filter like this:
>>
>> sub filter_post {
>> $modify_headers = 1;
>> delete $hdr{'X-Trace'};
>> return '';
>> }
>
> How do I have to apply this filter? Which files I have to edit? I'm
> using INN 2.4.5.
See <http://www.eyrie.org/~eagle/software/inn/docs/hook-perl.html>:
%%
To delete the Organization: header, you should not use delete $hdr{'Organization'}
(this syntax may work with some headers, and not with other headers).
Instead, you are encouraged to use:
$hdr{'Organization'} = undef;
$modify_headers = 1;
or:
$hdr{'Organization'} = '';
$modify_headers = 1;
%%
The same works for the X-Trace: header.
We discussed it with Paolo here:
http://groups.google.fr/group/news.software.nntp/browse_thread/thread/119073cc074597db
and it appeared that the behaviour is different between INN 2.4 and INN 2.5.
INN 2.4 -> undef or delete, *depending on the header*
INN 2.5 -> undef or ''
--
Julien ÉLIE
« Hâte-toi de bien vivre et songe que chaque jour
est à lui seul une vie. » (Sénèque)
Technical Details
Message-ID:
<h46b3u$9fj$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:
<FAQ-faq-1248159661$8483@windlord.stanford.edu> <4a66a1bb$0$31333$9b4e6d93@newsspool4.arcor-online.net>Show Full Headers
Complete Article Headers
Message-ID: <h46b3u$9fj$1@news.trigofacile.com> Subject: Re: Hiding the X-Trace Header Date: Wed, 22 Jul 2009 08:20:41 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <FAQ-faq-1248159661$8483@windlord.stanford.edu> <4a66a1bb$0$31333$9b4e6d93@newsspool4.arcor-online.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!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: 47 NNTP-Posting-Host: aaubervilliers-151-1-49-98.w83-114.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 1248243646 9715 83.114.131.98 (22 Jul 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Wed, 22 Jul 2009 06:20:46 +0000 (UTC) In-Reply-To: <4a66a1bb$0$31333$9b4e6d93@newsspool4.arcor-online.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049