🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69430

Re: CNEWS -- passing NNTP retrieved articles through a rewriting filter

#69430
From: J C Lawrence
Date: Thu, 15 Jul 2004 13:36
32 lines
2582 bytes
iMeowbot@mac.com wrote in message news:<iMeowbot-67B06D.03400510072004@news.supernews.com>...
> In article <49682b7e.0406251858.74e1f52a@posting.google.com>,
>  claw+google@kanga.nu (J C Lawrence) wrote:
 
>> I'm running CNEWS and would like to have articles passed through a
>> script which rewrites the article (headers and body) before sending
it
>> to the NNTP-based reader.  Any pointers on where to start
implementing
>> such a thing?
 
> What are you using, nntp-1.5.something?

I can yeah.  Looks like some source hacking much as you suggest is
required.  Thanks.
 
>> Specifically I'm gating moderated mailing lists to/from CNEWS and
need
>> to rewrite retrieved messages during the NNTP conversation for
various
>> email-address rewriting/spam-hiding etc purposes.  Unfortunately
>> external requirements don't allow me to rewrite the articles before
>> storage (the re-writing algorithm is rather dynamic).

> Ugh.  If you are supporting the XOVER command, you'll also have to take 
> .overview contents into account.  Newsreaders can become very confused 
> if XOVER contents don't match the article read later, so you might want 
> to consider a more static approach.

Good point.  I'll have to apply the same set of transforms to the
returned XOVER data as to the raw article data.  AFAICT this should be
safe as I won't be rewriting the Message-ID:.
Technical Details
Message-ID: <49682b7e.0407150536.4cf712d4@posting.google.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.20140818.mbox.gz!number1.nntp.sjc.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!news.moat.net!news.glorb.com!postnews2.google.com!not-for-mail
References: <49682b7e.0406251858.74e1f52a@posting.google.com> <iMeowbot-67B06D.03400510072004@news.supernews.com>

Show Full Headers
Complete Article Headers
Message-ID: <49682b7e.0407150536.4cf712d4@posting.google.com>
Subject: Re: CNEWS -- passing NNTP retrieved articles through a rewriting filter
Date: Thu, 15 Jul 2004 13:36:52 +0000
From: claw+google@kanga.nu (J C Lawrence)
References: <49682b7e.0406251858.74e1f52a@posting.google.com> <iMeowbot-67B06D.03400510072004@news.supernews.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.20140818.mbox.gz!number1.nntp.sjc.giganews.com!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!news.moat.net!news.glorb.com!postnews2.google.com!not-for-mail
Newsgroups: news.software.nntp
Organization: http://groups.google.com
Lines: 32
NNTP-Posting-Host: 66.212.208.102
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1089898620 20456 127.0.0.1 (15 Jul 2004 13:37:00
 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 15 Jul 2004 13:37:00 +0000 (UTC)