🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by G Hardman Fri, 24 May 2002 14:33
INN : Removing headers with Python filter?
#58968
Author: G Hardman
Date: Fri, 24 May 2002 14:33
26 lines
1707 bytes
Hi all,

I have *almost* got an all-singing, all-dancing Python article filter 
working on our INN server. However, as part of a local security hack, we 
add an extra header containing a token to verify the sender is who he says 
he is, match this token against one stored on the news server, and then 
remove the header so the user is none the wiser (and more importantly, 
can't use it to get access to restricted groups).

However I can't seem to be able to remove headers from the dictionary (or 
at least, the removal isn't passed on to INN). I'm currently doing 
something like :

....
permit = art[Posting_Permit]
del art[Posting_Permit]
....

Is there something more I should know (ie am I missing something obvious),
or alternatively, does anyone have the required hacks to python.c to
enable this to work?

Cheers in advance,
G

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