Thread View: news.software.nntp
14 messages
14 total messages
Started by kjell
Sat, 10 May 2008 12:12
IP number
Author: kjell
Date: Sat, 10 May 2008 12:12
Date: Sat, 10 May 2008 12:12
9 lines
1216 bytes
1216 bytes
How can I get rid of ip number from X-Trace and NNTP-Posting-Host? Using Inn 2.4.4 -- Akademiker,högutbildade,vÀlavlönade mÀnniskor högt upp i vÀlstÄndsligan har plötsligt blivit de som har det svÄrt i samhÀllet detta skall de sÀmst stÀllda nu fÄ betala.
Re: IP number
Author: Ray Banana
Date: Sat, 10 May 2008 12:23
Date: Sat, 10 May 2008 12:23
10 lines
1556 bytes
1556 bytes
Thus spake "kjell" <petter@uuyuy.se> > How can I get rid of ip number from X-Trace and NNTP-Posting-Host? > Using Inn 2.4.4 You can modify these headers in filter_nnrpd. -- Too many ingredients in the soup, no room for a spoon. http://news.motzarella.org
Re: IP number
Author: kjell
Date: Sat, 10 May 2008 13:16
Date: Sat, 10 May 2008 13:16
20 lines
1396 bytes
1396 bytes
Ray Banana skrev:
> Thus spake "kjell" <petter@uuyuy.se>
>
>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>> Using Inn 2.4.4
>
> You can modify these headers in filter_nnrpd.
>
Yes, I have done this:
sub filter_post {
$modify_headers = 1;
delete $hdr{'X-Trace'};
return '';
}
but I get this:
X-Trace: ubuntu1.ipbo.se 1210424203 12771 83.209.44.82 (10 May 2008
12:56:43 GMT)
Re: IP number
Author: Ray Banana
Date: Sat, 10 May 2008 14:06
Date: Sat, 10 May 2008 14:06
27 lines
2070 bytes
2070 bytes
Thus spake kjell <hd@ipbo.se>
>>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>>> Using Inn 2.4.4
>> You can modify these headers in filter_nnrpd.
> Yes, I have done this:
> sub filter_post {
> $modify_headers = 1;
> delete $hdr{'X-Trace'};
> return '';
> }
> but I get this:
> X-Trace: ubuntu1.ipbo.se 1210424203 12771 83.209.44.82 (10 May 2008
> 12:56:43 GMT)
Please check your news.notice for messages referring to filtering.
You should see a message like
nnrpd[xxxxxx]: SERVER perl filtering enabled
if the perl filter is actually enabled.
--
Too many ingredients in the soup, no room for a spoon.
http://news.motzarella.org
Re: IP number
Author: kjell
Date: Sat, 10 May 2008 15:18
Date: Sat, 10 May 2008 15:18
27 lines
1720 bytes
1720 bytes
Ray Banana skrev:
> Thus spake kjell <hd@ipbo.se>
>
>>>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>>>> Using Inn 2.4.4
>>> You can modify these headers in filter_nnrpd.
>> Yes, I have done this:
>
>> sub filter_post {
>> $modify_headers = 1;
>> delete $hdr{'X-Trace'};
>> return '';
>> }
>
>> but I get this:
>> X-Trace: ubuntu1.ipbo.se 1210424203 12771 83.209.44.82 (10 May 2008
>> 12:56:43 GMT)
>
> Please check your news.notice for messages referring to filtering.
> You should see a message like
>
> nnrpd[xxxxxx]: SERVER perl filtering enabled
>
> if the perl filter is actually enabled.
>
The perl filter is enabled!
Re: IP number
Author: Ray Banana
Date: Sat, 10 May 2008 15:51
Date: Sat, 10 May 2008 15:51
28 lines
2304 bytes
2304 bytes
Thus spake kjell <hd@ipbo.se>
>>>>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>>>>> Using Inn 2.4.4
>>> sub filter_post {
>>> $modify_headers = 1;
>>> delete $hdr{'X-Trace'};
>>> return '';
>>> }
>>> but I get this:
>>> X-Trace: ubuntu1.ipbo.se 1210424203 12771 83.209.44.82 (10 May 2008
>>> 12:56:43 GMT)
> The perl filter is enabled!
OK. In filter_nnrpd.pl you have access to a copy of the headers, not the
actual headers. If you set $modify_headers to true and modify a header,
the modified header will replace the header in the article. So don't
remove the element from the hash, but replace its content:
$hdr{'X-Trace'} = '';
As the header *value* is now null, it will be removed after
filter_nnrpd.pl returns.
--
Too many ingredients in the soup, no room for a spoon.
http://news.motzarella.org
Re: IP number
Author: kjell
Date: Sat, 10 May 2008 18:04
Date: Sat, 10 May 2008 18:04
27 lines
2001 bytes
2001 bytes
Ray Banana skrev:
> Thus spake kjell <hd@ipbo.se>
>
>>>>>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>>>>>> Using Inn 2.4.4
>>>> sub filter_post {
>>>> $modify_headers = 1;
>>>> delete $hdr{'X-Trace'};
>>>> return '';
>>>> }
>>>> but I get this:
>>>> X-Trace: ubuntu1.ipbo.se 1210424203 12771 83.209.44.82 (10 May 2008
>>>> 12:56:43 GMT)
>> The perl filter is enabled!
>
> OK. In filter_nnrpd.pl you have access to a copy of the headers, not the
> actual headers. If you set $modify_headers to true and modify a header,
> the modified header will replace the header in the article. So don't
> remove the element from the hash, but replace its content:
>
> $hdr{'X-Trace'} = '';
>
> As the header *value* is now null, it will be removed after
> filter_nnrpd.pl returns.
Sorry, I don't understand, so please write what to put
in the filter_nnrpd.pl!
Re: IP number
Author: Ray Banana
Date: Sat, 10 May 2008 18:36
Date: Sat, 10 May 2008 18:36
34 lines
2540 bytes
2540 bytes
Thus spake kjell <hd@ipbo.se>
>>>>>>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>>>>>>> Using Inn 2.4.4
>>>>> sub filter_post {
>>>>> $modify_headers = 1;
>>>>> delete $hdr{'X-Trace'};
>>>>> return '';
>>>>> }
>>>>> but I get this:
>>>>> X-Trace: ubuntu1.ipbo.se 1210424203 12771 83.209.44.82 (10 May 2008
>>>>> 12:56:43 GMT)
>> OK. In filter_nnrpd.pl you have access to a copy of the headers, not the
>> actual headers. If you set $modify_headers to true and modify a header,
>> the modified header will replace the header in the article. So don't
>> remove the element from the hash, but replace its content:
>> $hdr{'X-Trace'} = '';
>> As the header *value* is now null, it will be removed after
>> filter_nnrpd.pl returns.
> Sorry, I don't understand, so please write what to put
> in the filter_nnrpd.pl!
Hmm. OK:
Instead of
| delete $hdr{'X-Trace'};
use
| $hdr{'X-Trace'} = '';
--
Too many ingredients in the soup, no room for a spoon.
http://news.motzarella.org
Re: IP number
Author: kjell
Date: Sat, 10 May 2008 20:36
Date: Sat, 10 May 2008 20:36
44 lines
2553 bytes
2553 bytes
Ray Banana skrev:
> Thus spake kjell <hd@ipbo.se>
>
>>>>>>>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>>>>>>>> Using Inn 2.4.4
>>>>>> sub filter_post {
>>>>>> $modify_headers = 1;
>>>>>> delete $hdr{'X-Trace'};
>>>>>> return '';
>>>>>> }
>>>>>> but I get this:
>>>>>> X-Trace: ubuntu1.ipbo.se 1210424203 12771 83.209.44.82 (10 May 2008
>>>>>> 12:56:43 GMT)
>>> OK. In filter_nnrpd.pl you have access to a copy of the headers, not the
>>> actual headers. If you set $modify_headers to true and modify a header,
>>> the modified header will replace the header in the article. So don't
>>> remove the element from the hash, but replace its content:
>>> $hdr{'X-Trace'} = '';
>>> As the header *value* is now null, it will be removed after
>>> filter_nnrpd.pl returns.
>> Sorry, I don't understand, so please write what to put
>> in the filter_nnrpd.pl!
>
> Hmm. OK:
> Instead of
>
> | delete $hdr{'X-Trace'};
>
> use
>
> | $hdr{'X-Trace'} = '';
>
Thanks!
And how about NNTP-Posting-Host?
Is this the entry?: $hdr{'NNTP-Posting-Host'} = '';
Is this ok?
sub filter_post {
$modify_headers = 1;
$hdr{'X-Trace'} = '';
$hdr{'NNTP-Posting-Host'} = '';
return '';
}
Re: IP number
Author: Ray Banana
Date: Sat, 10 May 2008 20:40
Date: Sat, 10 May 2008 20:40
14 lines
1888 bytes
1888 bytes
Thus spake kjell <hd@ipbo.se>
>> | $hdr{'X-Trace'} = '';
> Thanks!
> And how about NNTP-Posting-Host?
> Is this the entry?: $hdr{'NNTP-Posting-Host'} = '';
Correct ;-)
It might be easier to set addnntppostinghost to false in inn.conf, though.
--
Too many ingredients in the soup, no room for a spoon.
http://news.motzarella.org
Re: IP number
Author: Julien ĂLIE
Date: Sat, 10 May 2008 20:43
Date: Sat, 10 May 2008 20:43
14 lines
1941 bytes
1941 bytes
Hi kjell,
> And how about NNTP-Posting-Host?
> Is this the entry?: $hdr{'NNTP-Posting-Host'} = '';
For this one, you ought to set addnntppostinghost to false in inn.conf.
--
Julien ĂLIE
« Depuis que j'ai changé mon clavier qwerty pour un clavier azerty,
je tape deux fois plus vite. Pourquoi ?
Parce qu'un homme azerty en vaut deux ! »
Re: IP number
Author: kjell
Date: Sat, 10 May 2008 21:25
Date: Sat, 10 May 2008 21:25
13 lines
1558 bytes
1558 bytes
Ray Banana skrev:
> Thus spake kjell <hd@ipbo.se>
>
>>> | $hdr{'X-Trace'} = '';
>> Thanks!
>> And how about NNTP-Posting-Host?
>> Is this the entry?: $hdr{'NNTP-Posting-Host'} = '';
>
> Correct ;-)
>
> It might be easier to set addnntppostinghost to false in inn.conf, though.
>
OK, Thanks!
Re: IP number
Author: Steve
Date: Mon, 12 May 2008 09:16
Date: Mon, 12 May 2008 09:16
24 lines
1641 bytes
1641 bytes
On Sat, 10 May 2008 14:12:10 +0200, kjell wrote in
Message-Id: <g043er$vre$1@aioe.org>:
> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
> Using Inn 2.4.4
Here's how I do it in filter_nnrpd.pl:-
#!/usr/bin/perl -wc
use strict;
our (%hdr, $modify_headers, $user);
sub filter_post {
my @delete_headers = qw(NNTP-Posting-Host X-Trace);
$hdr{$_} = undef foreach @delete_headers;
$modify_headers = 1;
return '';
}
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: IP number
Author: kjell
Date: Mon, 12 May 2008 12:24
Date: Mon, 12 May 2008 12:24
27 lines
1604 bytes
1604 bytes
Det hÀnde Steve formulerade :
> On Sat, 10 May 2008 14:12:10 +0200, kjell wrote in
> Message-Id: <g043er$vre$1@aioe.org>:
>> How can I get rid of ip number from X-Trace and NNTP-Posting-Host?
>> Using Inn 2.4.4
> Here's how I do it in filter_nnrpd.pl:-
> #!/usr/bin/perl -wc
> use strict;
> our (%hdr, $modify_headers, $user);
> sub filter_post {
> my @delete_headers = qw(NNTP-Posting-Host X-Trace);
> $hdr{$_} = undef foreach @delete_headers;
> $modify_headers = 1;
> return '';
> }
Thanks! :D
--
mvh/Kjell
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads