🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Mike O'Connor Wed, 18 Mar 1998 00:00
Adding headers to "outbound" postings with innd?
#26987
Author: Mike O'Connor
Date: Wed, 18 Mar 1998 00:00
26 lines
1955 bytes
I have a transit server, and don't control the internal reader servers
that feed it.  What I'd like to do is add a header to every article
that comes from the inside -- an "X-Disclaimer:" header, for example.
Has anyone done this before?  Has anyone thought about issues like:

*  How should INN determine that it's inside?  Would analysis of the
   Message-ID: for <{blah}@disclaimerville.com> be sufficient, or maybe
   a channel feed that would apply to all articles not coming in via 
   all my external feeds, or maybe running something "special" listening 
   to the IP interface that all the internal servers feed me on, or what?

*  How should I do this safely and quickly?  I don't want to cause
   problems for things like PGP-signed articles, or having it do too
   much extra work per inbound article?  I'm presuming that art.c is
   the right place to do this kind of thing, but I'm not 100% sure --
   maybe now is a good excuse to delve more into perl5.  ;)

On the theory that I don't want to pollute the Usenet with munged
messages, I figure I should think out loud and ask...  ;)

--
 Michael J. O'Connor | WWW: http://dojo.mi.org/~mjo/ | Email: mjo@dojo.mi.org
 InterNIC WHOIS: MJO | (has my PGP & Geek Code info) | Phone: +1 248-848-4481

Re: Adding headers to "outbound" postings with innd?
#27003
Author: st. paul's wort
Date: Wed, 18 Mar 1998 00:00
27 lines
1960 bytes
In article <980221180309.AA13804@dojo.mi.org>,
Mike O'Connor <mjo@dojo.mi.org> wrote:
>I have a transit server, and don't control the internal reader servers
>that feed it.  What I'd like to do is add a header to every article
>that comes from the inside -- an "X-Disclaimer:" header, for example.
>Has anyone done this before?  Has anyone thought about issues like:
>*  How should INN determine that it's inside?  Would analysis of the
>   Message-ID: for <{blah}@disclaimerville.com> be sufficient, or maybe
>   a channel feed that would apply to all articles not coming in via 
>   all my external feeds, or maybe running something "special" listening 
>   to the IP interface that all the internal servers feed me on, or what?
>*  How should I do this safely and quickly?  I don't want to cause
>   problems for things like PGP-signed articles, or having it do too
>   much extra work per inbound article?  I'm presuming that art.c is
>   the right place to do this kind of thing, but I'm not 100% sure --
>   maybe now is a good excuse to delve more into perl5.  ;)

I would add a perl hook that adds the X-Disclaimer to all posts
accepted by nnrpd.  No need to muck with the source.

rone
-- 
The finest day that i ever had
Was when i learned to cry on demand

Re: Adding headers to "outbound" postings with innd?
#27015
Author: st. paul's wort
Date: Wed, 18 Mar 1998 00:00
17 lines
1192 bytes
In article <6epsj8$hpm$1@news1.exit109.com>,
Jeremy  <jeremy@exit109.com> wrote:
>st. paul's wort <rone+usenet@ennui.org> wrote:
>> I would add a perl hook that adds the X-Disclaimer to all posts
>> accepted by nnrpd.  No need to muck with the source.
>You'd need to muck with the source to make the perl hooks able
>to add headers.

Doh.  I knew that.

rone
-- 
The finest day that i ever had
Was when i learned to cry on demand

Re: Adding headers to "outbound" postings with innd?
#27027
Author: Mike O'Connor
Date: Thu, 19 Mar 1998 00:00
23 lines
1583 bytes
In article <rone.WedMar18175109PST1998.24809@ennui.org>,
st. paul's wort <rone+usenet@ennui.org> wrote:
:In article <6epsj8$hpm$1@news1.exit109.com>,
:Jeremy  <jeremy@exit109.com> wrote:
:>st. paul's wort <rone+usenet@ennui.org> wrote:
:>> I would add a perl hook that adds the X-Disclaimer to all posts
:>> accepted by nnrpd.  No need to muck with the source.
:>You'd need to muck with the source to make the perl hooks able
:>to add headers.
:
:Doh.  I knew that.

I can't hack nnrpd since the posts are going to be sent to me from an
internal feeding machine.  If I had the ability to do this at the
newsreader server level, I wouldn't be asking how to hack innd to do it. 
 
--
 Michael J. O'Connor | WWW: http://dojo.mi.org/~mjo/ | Email: mjo@dojo.mi.org
 InterNIC WHOIS: MJO | (has my PGP & Geek Code info) | Phone: +1 248-848-4481


Re: Adding headers to "outbound" postings with innd?
#27033
Author: Fluffy
Date: Thu, 19 Mar 1998 00:00
14 lines
1534 bytes
Mike O'Connor <mjo@dojo.mi.org> wrote:
: I can't hack nnrpd since the posts are going to be sent to me from an
: internal feeding machine.  If I had the ability to do this at the
: newsreader server level, I wouldn't be asking how to hack innd to do it. 

Well then, I think you'll have to hook something into ARTpost in art.c. 
You can look at something like Data->Feedsite to see if it's one of
your readers, then stuff in the headers you need.  A good place to do
this might be right before ARTassignnumbers() {the Xref stuff} gets
called, since by then we've pretty much decided to keep the article. 
ARTassignnumbers itself will give you some hints on how to add headers.

Re: Adding headers to "outbound" postings with innd?
#27048
Author: Jeremy
Date: Thu, 19 Mar 1998 00:00
14 lines
981 bytes
st. paul's wort <rone+usenet@ennui.org> wrote:

> I would add a perl hook that adds the X-Disclaimer to all posts
> accepted by nnrpd.  No need to muck with the source.

You'd need to muck with the source to make the perl hooks able
to add headers.

-- 
Jeremy  |  jeremy@exit109.com
"Never tell me the odds."  --Han Solo

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