🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50896

Formatting the body of a message in INN 2.3.1

#50896
From: Eric
Date: Wed, 28 Feb 2001 22:22
25 lines
1744 bytes
Question:
I want to know how to intercept postings and reformat them
to lines of 72 characters length.

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.

-- 
Eric
	http://news.flevoland.to
Technical Details
Message-ID: <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-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!fr.clara.net!heighliner.fr.clara.net!news.tele.dk!194.109.6.150!transit.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <3a9d7a75$0$57932$1a0eedbc@dreader2.news.xs4all.nl>
Subject: Formatting the body of a message in INN 2.3.1
Date: Wed, 28 Feb 2001 23:22:47 +0100
From: Eric <eric@dehont.dyn.dhs.org>
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-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!fr.clara.net!heighliner.fr.clara.net!news.tele.dk!194.109.6.150!transit.news.xs4all.nl!newszilla.xs4all.nl!not-for-mail
Newsgroups: news.software.nntp
Organization: Stad-van-de-Vrijheid / news://news.flevoland.to
User-Agent: Pan/0.8.1beta1 (Unix)
Lines: 24
NNTP-Posting-Host: 213.46.31.158
X-Trace: 983399030 dreader2.news.xs4all.nl 57932 edehont/213.46.31.158