🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50898

Re: Formatting the body of a message in INN 2.3.1

#50898
From: Russ Allbery
Date: Wed, 28 Feb 2001 23:14
32 lines
2358 bytes
Eric <eric@dehont.dyn.dhs.org> writes:

> Explanation:
> On my news server I have a number of local news groups some of
> wich get fed by mailinglists.

> Some of those mailinglists deliver messages with awful long lines,
> and some of the users post messages that 'flag', so some lines
> are good, about 75 characters, followed by lines that are only
> about 10 characters long. (The result of cutting and pasting.)

> I've nearly finished a script to reformat such postings to lines
> of 72 characters, but I can't figure out how to intercept those
> messages and feed them to my script.

> The mailinglists I receive on my server are no problem, I just
> place my script before the mailpost-command, but I also receive
> malformatted postings from another local news server.

There isn't any way to rewrite the body of a message received from another
server (this is explicitly forbidden under the normal Usenet protocol;
you're not supposed to modify messages that you're transiting).  For a
mail to news gateway, getting the messages before they're posted is best;
I don't know of a good solution for the messages you're getting from
another server.

-- 
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.
Technical Details
Message-ID: <ylu25e4czf.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <3a9d7a75$0$57932$1a0eedbc@dreader2.news.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <ylu25e4czf.fsf@windlord.stanford.edu>
Subject: Re: Formatting the body of a message in INN 2.3.1
Date: Wed, 28 Feb 2001 23:14:12 +0000
From: Russ Allbery <rra@stanford.edu>
References: <3a9d7a75$0$57932$1a0eedbc@dreader2.news.xs4all.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 31
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 983402052 11618 171.64.13.23 (28 Feb 2001 23:14:12 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)