🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #104

Re: What's the "magic" of a Unix mailbox file?

#104
From: Anthony Heading
Date: Thu, 06 Aug 1992 13:44
40 lines
2007 bytes
mrex@aix01.rz.fht-mannheim.de (Martin Rex) writes

> I don't think there's many special things about the mbox file.
> Only that Unix sendmail usually puts a line im the Form
>
> From <user>@<host> <date>
>
> in the first line of every mail message.

> If there's any line contained in the mail containing the word
> From followed by a blank character (Space, ASCII 32), then this
> line is equippend with a leading ">" character.  The regular From:
> in the Mail-Header is the word From followed by a colon, and therefore
> doesn't count as mail seperator.

I think in fact that this line is inserted by /bin/mail on most
BSD systems which (at least under Ultrix) when invoked as "mail"
uses the flag -r to allow specification of the sender, and
writes that line and the message into the system mailbox.

I tried to make sendmail preserve usernames when present, so that
lines like:

From Anthony <heading@hermes.mod.uk> Thu Aug  6 14:34:35 1992

delimited the messages. Some aspects of the mail system coped, but
Emacs RMAIL for example decided that this wasn't valid, and
in fact seems to have quite a complicated regexp to match this
line, demanding it seemed that there was only one word before the
date part started for example...

Is RMAIL correct to be so fussy? Or is it the case, as mrex
writes above, that "^From " is the correct delimiter?

Anthony.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Anthony Heading                    heading@hermes.mod.uk
DRA Malvern UK
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Technical Details
Message-ID: <BsKE8J.2w2@breeze.rsre.mod.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!rsre!breeze!heading
References: <1992Aug4.205537.26710@spectrum.xerox.com> <4nxmzv9_@aix01.rz.fht-mannheim.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!rsre!breeze!heading
From: heading@breeze.rsre.mod.uk (Anthony Heading)
Newsgroups: comp.mail.misc
Subject: Re: What's the "magic" of a Unix mailbox file?
Message-ID: <BsKE8J.2w2@breeze.rsre.mod.uk>
Date: 6 Aug 92 13:44:49 GMT
References: <1992Aug4.205537.26710@spectrum.xerox.com> <4nxmzv9_@aix01.rz.fht-mannheim.de>
Organization: Defence Research Agency
Lines: 40