Thread View: news.software.nntp
10 messages
10 total messages
Started by Steve
Fri, 08 Aug 2003 13:31
INN 2.4 X-Trace Header
Author: Steve
Date: Fri, 08 Aug 2003 13:31
Date: Fri, 08 Aug 2003 13:31
7 lines
1119 bytes
1119 bytes
I've configured INN to drop the NNTP-Posting-Host header, but the posters address is still displayed in the X-Trace header. Is there a simple way to prevent this? Historical postings seem to suggest modifying the INN source, but I really want to avoid that approach. Thanks
Re: INN 2.4 X-Trace Header
Author: Jeffrey M. Vinocur
Date: Fri, 08 Aug 2003 22:10
Date: Fri, 08 Aug 2003 22:10
17 lines
1700 bytes
1700 bytes
In article <bh08nt$7i3$1@bananasplit.info>, Steve <steve@nospam-goofer.co.uk> wrote: >I've configured INN to drop the NNTP-Posting-Host header, but the posters >address is still displayed in the X-Trace header. Is there a simple way >to prevent this? Historical postings seem to suggest modifying the INN >source, but I really want to avoid that approach. Yeah, for whatever reason there's no configurability on X-Trace. I think you can take care of it with a very simply Perl posting filter (with $modifyheaders set, you can just delete that header). -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4 X-Trace Header
Author: Marco d'Itri
Date: Sat, 09 Aug 2003 11:38
Date: Sat, 09 Aug 2003 11:38
30 lines
1801 bytes
1801 bytes
steve@nospam-goofer.co.uk wrote:
>I've configured INN to drop the NNTP-Posting-Host header, but the posters
>address is still displayed in the X-Trace header. Is there a simple way
>to prevent this? Historical postings seem to suggest modifying the INN
>source, but I really want to avoid that approach.
/etc/news/filter/filter_nnrpd.pl:
#!/usr/bin/perl -wc
# vim: shiftwidth=4 tabstop=4 autoindent smartindent smarttab
use strict;
our (%hdr, $modify_headers, $user);
sub filter_post {
my @delete_headers = qw(NNTP-Posting-Host X-Trace);
if ($user eq 'md@newsguests') {
push(@delete_headers, qw(Sender X-Complaints-To));
}
$hdr{$_} = undef foreach @delete_headers;
$modify_headers = 1;
return '';
}
--
ciao, |
Marco | * The Internet is full. Go away. -- Joel Furr *
Re: INN 2.4 X-Trace Header
Author: Steve
Date: Sun, 10 Aug 2003 23:07
Date: Sun, 10 Aug 2003 23:07
54 lines
2163 bytes
2163 bytes
Marco d'Itri wrote:
> steve@nospam-goofer.co.uk wrote:
>
>>I've configured INN to drop the NNTP-Posting-Host header, but the
>>posters address is still displayed in the X-Trace header. Is there a
>>simple way to prevent this? Historical postings seem to suggest
>>modifying the INN source, but I really want to avoid that approach.
>
> /etc/news/filter/filter_nnrpd.pl:
>
> #!/usr/bin/perl -wc
> # vim: shiftwidth=4 tabstop=4 autoindent smartindent smarttab
>
> use strict;
> our (%hdr, $modify_headers, $user);
>
> sub filter_post {
> my @delete_headers = qw(NNTP-Posting-Host X-Trace);
>
> if ($user eq 'md@newsguests') {
> push(@delete_headers, qw(Sender X-Complaints-To));
> }
>
> $hdr{$_} = undef foreach @delete_headers;
> $modify_headers = 1;
> return '';
> }
>
Marco,
Many thanks for your reply, my apologies for not responding sooner.
Couple of questions:
I assume this needs to replace the example filter_nnrpd.pl that's in my
/usr/local/news/bin/filter directory?
Do I need to tell INN in some way to process this file? I can't see any
references to it elsewhere within my configuration.
Thanks again
Re: INN 2.4 X-Trace Header
Author: Jeffrey M. Vinocur
Date: Mon, 11 Aug 2003 03:22
Date: Mon, 11 Aug 2003 03:22
23 lines
1878 bytes
1878 bytes
In article <bh6j6n$5fm$1@bananasplit.info>, Steve <steve@nospam-goofer.co.uk> wrote: > >I assume this needs to replace the example filter_nnrpd.pl that's in my >/usr/local/news/bin/filter directory? Replace, or supplement, depending on whether you care about whatever's there now. >Do I need to tell INN in some way to process this file? I can't see any >references to it elsewhere within my configuration. Those scripts (located in $pathfilter) are the ones that various parts of INN use when compiled with --with-perl or --with-python. You can read about this in doc/hook-perl in recent INN versions, or, uh, README.perl_hook in somewhat older versions. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4 X-Trace Header
Author: Steve
Date: Mon, 11 Aug 2003 08:34
Date: Mon, 11 Aug 2003 08:34
14 lines
1308 bytes
1308 bytes
Jeffrey M. Vinocur wrote: > Those scripts (located in $pathfilter) are the ones that various > parts of INN use when compiled with --with-perl or --with-python. > > You can read about this in doc/hook-perl in recent INN versions, > or, uh, README.perl_hook in somewhat older versions. > > Thanks Jeffrey, it's working nicely now.
Re: INN 2.4 X-Trace Header
Author: Jeffrey M. Vinocur
Date: Tue, 12 Aug 2003 04:21
Date: Tue, 12 Aug 2003 04:21
20 lines
1705 bytes
1705 bytes
In article <bjf660.ujg.vms+news-fsf@moria.home.bofhlet.net>, Vid Strpic <vms+news@bofhlet.net> wrote: >And it works with inn 2.2.x, too, thanks Jeff, I needed just that.. >simple $modify_headers variable, and I didn't know that :( > > - Vid `RTFM` Strpic. Sure, no problem -- we're quite aware that INN has so much documentation that it's unmanageable to find answers to certain types of questions. (Some of those questions have made it into Russ's FAQ, but IIRC this isn't covered there.) What I'm trying to say is, I don't mind such questions :-) -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4 X-Trace Header
Author: Vid Strpic
Date: Tue, 12 Aug 2003 11:42
Date: Tue, 12 Aug 2003 11:42
33 lines
3006 bytes
3006 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeffrey M. Vinocur whispered unto us in news.software.nntp:
> In article <bjf660.ujg.vms+news-fsf@moria.home.bofhlet.net>,
> Vid Strpic <vms+news@bofhlet.net> wrote:
>>And it works with inn 2.2.x, too, thanks Jeff, I needed just that..
>>simple $modify_headers variable, and I didn't know that :(
> Sure, no problem -- we're quite aware that INN has so much
> documentation that it's unmanageable to find answers to certain
> types of questions. (Some of those questions have made it into
> Russ's FAQ, but IIRC this isn't covered there.)
I have grepped inn's source for word 'modify_headers', nothing came
out....
- Vid `RTFM` Strpic.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/ONKQq1AzG0/iPGMRAhqOAJ4oE0fF+bGyAPDcUi9R7hKdmJ0D1QCgrIzp
VLAcXyru2iZAWj54Zl1cFIg=
=1qoz
-----END PGP SIGNATURE-----
--
vms@bofhlet.net, IRC:*@Martin, /bin/zsh. C|N>K
Linux moria 2.4.21 #1 Sat Jul 5 16:11:20 CEST 2003 i686
13:41:28 up 22 days, 22:26, 7 users, load average: 0.06, 0.05, 0.09
Finally saw "Nemesis" today. On the way home my wife asked me, "Does that mean
Data is fragmented?"
Sorry. Guess she's been married to me too long. - Tony
Re: INN 2.4 X-Trace Header
Author: Russ Allbery
Date: Tue, 12 Aug 2003 15:01
Date: Tue, 12 Aug 2003 15:01
27 lines
2486 bytes
2486 bytes
Vid Strpic <vms+news@bofhlet.net> writes:
> Jeffrey M. Vinocur whispered unto us in news.software.nntp:
>> Vid Strpic <vms+news@bofhlet.net> wrote:
>>> And it works with inn 2.2.x, too, thanks Jeff, I needed just that..
>>> simple $modify_headers variable, and I didn't know that :(
>> Sure, no problem -- we're quite aware that INN has so much
>> documentation that it's unmanageable to find answers to certain types
>> of questions. (Some of those questions have made it into Russ's FAQ,
>> but IIRC this isn't covered there.)
> I have grepped inn's source for word 'modify_headers', nothing came
> out....
Not sure why not.
windlord:~/dvl/inn-2.2> grep -r modify_headers *
README.perl_hook: hash. In fact, if the Perl variable $modify_headers is set to true after
README.perl_hook: then be rejected by innd). If $modify_headers is set, *everything* in the
nnrpd/perl.c: modswitch = perl_get_sv("modify_headers",FALSE);
--
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.
Re: INN 2.4 X-Trace Header
Author: Russ Allbery
Date: Mon, 08 Sep 2003 04:55
Date: Mon, 08 Sep 2003 04:55
20 lines
1962 bytes
1962 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Vid Strpic <vms+news@bofhlet.net> wrote:
>> And it works with inn 2.2.x, too, thanks Jeff, I needed just that..
>> simple $modify_headers variable, and I didn't know that :(
>>
>> - Vid `RTFM` Strpic.
> Sure, no problem -- we're quite aware that INN has so much
> documentation that it's unmanageable to find answers to certain
> types of questions. (Some of those questions have made it into
> Russ's FAQ, but IIRC this isn't covered there.)
It is now! :)
--
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.
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