🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Eric Wed, 28 Feb 2001 22:22
Formatting the body of a message in INN 2.3.1
#50896
Author: 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
Re: Formatting the body of a message in INN 2.3.1
#50898
Author: 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.
Re: Formatting the body of a message in INN 2.3.1
#51012
Author: bill davidsen
Date: Tue, 06 Mar 2001 16:35
27 lines
2244 bytes
In article <3a9d7a75$0$57932$1a0eedbc@dreader2.news.xs4all.nl>,
Eric  <eric@dehont.dyn.dhs.org> wrote:
| Question:
| I want to know how to intercept postings and reformat them
| to lines of 72 characters length.

| 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.

  Modifying the content of a posted message after post is forbidden by
several standards, and is a BAD IDEA(tm) anyway. Why not get the other
site to mark the group as moderated and with a moderator address of your
software. The the messages would formatted before injection (allowed)
and would work correctly.

  I can think of some other ugly and complex solutions, but that sounds
easiest to me, assuming that the other newsserver and owner of the list
agree to this.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
At LinuxExpo Sun was showing Linux applications running on Solaris.
They don't get it, the arrow points the other way. There's a reason why
there's no SolarisExpo, Solaris is a tool; Linux is a philosophy, a
religion, a way of life, and only incidentally an operating system.
Re: Formatting the body of a message in INN 2.3.1
#51057
Author: Eric
Date: Wed, 07 Mar 2001 19:57
37 lines
2358 bytes
davidsen@tmr.com (bill davidsen), in bericht
<9833kj$6dec$1@newssvr05-en0.news.prodigy.com> schreef je toch echt:

> In article <3a9d7a75$0$57932$1a0eedbc@dreader2.news.xs4all.nl>, Eric 
> <eric@dehont.dyn.dhs.org> wrote:
> | Question:
> | I want to know how to intercept postings and reformat them
> | to lines of 72 characters length.
> 
> | 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.
> 
>   Modifying the content of a posted message after post is forbidden by
> several standards, and is a BAD IDEA(tm) anyway. Why not get the other
> site to mark the group as moderated and with a moderator address of your
> software. The the messages would formatted before injection (allowed)
> and would work correctly.

This is clever.

Absolutely.

Thanks!

> I can think of some other ugly and complex solutions, but that sounds
> easiest to me, assuming that the other newsserver and owner of the list
> agree to this.

Wont't be a problem.

-- 
Eric
	http://news.flevoland.to
	Ongemodereerd je zegje doen over Flevolandse
	onderwerpen. (NNTP: news://news.flevoland.to/algemeen )
Re: Formatting the body of a message in INN 2.3.1
#51058
Author: Eric
Date: Wed, 07 Mar 2001 20:00
37 lines
2198 bytes
davidsen@tmr.com (bill davidsen), in bericht
<9833kj$6dec$1@newssvr05-en0.news.prodigy.com> schreef je toch echt:

> In article <3a9d7a75$0$57932$1a0eedbc@dreader2.news.xs4all.nl>, Eric 
> <eric@dehont.dyn.dhs.org> wrote:
> | Question:
> | I want to know how to intercept postings and reformat them
> | to lines of 72 characters length.
> 
> | 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.
> 
>   Modifying the content of a posted message after post is forbidden by
> several standards, and is a BAD IDEA(tm) anyway. Why not get the other
> site to mark the group as moderated and with a moderator address of your
> software. The the messages would formatted before injection (allowed)
> and would work correctly.

This is clever.

Absolutely.

Thanks!

> I can think of some other ugly and complex solutions, but that sounds
> easiest to me, assuming that the other newsserver and owner of the list
> agree to this.

Wont't be a problem.

-- 
Eric
	http://news.flevoland.to
	Ongemodereerd je zegje doen over Flevolandse
	onderwerpen. (NNTP: news://news.flevoland.to/algemeen )
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