Article View: news.software.nntp
Article #88740Re: mbox archive for a news server
From: Russ Allbery
Date: Wed, 25 Aug 2021 15:50
Date: Wed, 25 Aug 2021 15:50
25 lines
2195 bytes
2195 bytes
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).
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<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-mailReferences:
<sfvheu$o2u$1@theuse.news.theuse.net> <slrnsi8faf.rkt.theise@panix2.panix.com> <sg1seq$va9$1@tncsrv09.home.tnetconsulting.net> <slrnsiaar2.68d.theise@panix2.panix.com> <sg3a9g$qio$1@hope.eyrie.org> <sg5om3$8m1$1@tncsrv09.home.tnetconsulting.net>Show Full Headers
Complete Article Headers
Message-ID: <877dg97cc7.fsf@hope.eyrie.org> Subject: Re: mbox archive for a news server Date: Wed, 25 Aug 2021 08:50:32 -0700 From: Russ Allbery <eagle@eyrie.org> References: <sfvheu$o2u$1@theuse.news.theuse.net> <slrnsi8faf.rkt.theise@panix2.panix.com> <sg1seq$va9$1@tncsrv09.home.tnetconsulting.net> <slrnsiaar2.68d.theise@panix2.panix.com> <sg3a9g$qio$1@hope.eyrie.org> <sg5om3$8m1$1@tncsrv09.home.tnetconsulting.net> 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: The Eyrie Mime-Version: 1.0 Content-Type: text/plain Injection-Info: hope.eyrie.org; logging-data="18501"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:sOw/wOzXGr5luaLMlGe8GlgVnsY= Lines: 24