Article View: news.software.nntp
Article #88743Re: mbox archive for a news server
From: Ted Heise
Date: Wed, 25 Aug 2021 20:46
Date: Wed, 25 Aug 2021 20:46
55 lines
3472 bytes
3472 bytes
On Wed, 25 Aug 2021 19:54:05 -0000 (UTC), Adam H. Kerman <ahk@chinet.com> wrote: > 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. This is all very interesting, and jogging some very old memories. I too have used Pine for decades, and have slrn configured to save Usenet posts straight into my pine mbox mail structure. It works wonderfully well. What I was thinking of when I offered my original suggestion was a time many years ago that I converted a boatload of e-mail from some other structure for use in pine. My recollection is I just fed that large file into formail and it generated a flood of individual messages that all ended up in my inbox. I suppose this would have depended on the mail processing system in place at the time as well, but I'm pretty sure they ended up in mbox format. Sorry this is not better informed, and please don't roast me too badly if I'm off track. -- Ted Heise <theise@panix.com> West Lafayette, IN, USA
Technical Details
Message-ID:
<slrnsidb10.c0q.theise@panix2.panix.com>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-mailReferences:
<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> <sg674t$ldn$1@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <slrnsidb10.c0q.theise@panix2.panix.com> Subject: Re: mbox archive for a news server Date: Wed, 25 Aug 2021 20:46:24 +0000 From: Ted Heise <theise@panix.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> <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 Newsgroups: news.software.nntp Organization: My own, such as it is Injection-Date: Wed, 25 Aug 2021 20:46:24 -0000 (UTC) Injection-Info: reader1.panix.com; posting-host="panix2.panix.com:166.84.1.2"; logging-data="21695"; mail-complaints-to="abuse@panix.com" User-Agent: slrn/1.0.3 (NetBSD) Lines: 54