🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88741

Re: mbox archive for a news server

#88741
From: Adam H. Kerman
Date: Wed, 25 Aug 2021 19:54
35 lines
2467 bytes
Russ Allbery <eagle@eyrie.org> wrote:
>Grant Taylor <gtaylor@tnetconsulting.net> writes:

>>I believe that formail habitually /appends/ new headers to the existing
>>headers.  Seeing as how the From line is used as a message separator in
>>mbox format, it /MUST/ be the first header.  I'm not sure that formail
>>in and of itself can /prepend/ / insert a header at the start of a
>>message.

>Another problem is that the line used as a message separator is not a
>header (it doesn't have a colon).  It starts with "From " and is a weird
>special case left over from mbox's odd legacy format.

>A more subtle problem is that Usenet messages don't escape lines that
>start with "From " in the body of the message, but this is mandatory when
>storing messages in mbox format or a body line might be mistaken for the
>start of a new message.  Conventionally this is done by prepending > to
>the line starting with "From ".  There are other approaches, but one needs
>to do something about this.  The maildir2mbox programs will handle this
>case (or should).

The conventional mbox separator line is created from ENVELOPE FROM.

I've been using alpine/pine forever. It doesn't parse for "nlFrom_" but
a line resembling ENVELOPE FROM. All these years of use, I can't say
it's ever mistaken a line in the body for a separator line.

If I archive an article from Usenet, it's to an mbox just so I can read
it with a mail client. If I have to do it manually, I just copy and
paste a separator line that is recognized.

A parser that looks for "nlFrom_" shouldn't be acceptable.

And, yeah, I've seen Usenet articles that escape "nlFrom_". It messes up
the quote level.
Technical Details
Message-ID: <sg674t$ldn$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <sfvheu$o2u$1@theuse.news.theuse.net> <sg3a9g$qio$1@hope.eyrie.org> <sg5om3$8m1$1@tncsrv09.home.tnetconsulting.net> <877dg97cc7.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <sg674t$ldn$1@dont-email.me>
Subject: Re: mbox archive for a news server
Date: Wed, 25 Aug 2021 19:54:05 +0000
From: "Adam H. Kerman" <ahk@chinet.com>
References: <sfvheu$o2u$1@theuse.news.theuse.net> <sg3a9g$qio$1@hope.eyrie.org> <sg5om3$8m1$1@tncsrv09.home.tnetconsulting.net> <877dg97cc7.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: A noiseless patient Spider
Lines: 35
Injection-Date: Wed, 25 Aug 2021 19:54:05 -0000 (UTC)
Cancel-Lock: sha1:ULvFhYpmE647TkGGBj06HYITkNA=
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)