home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.misc
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsk!pegasus!hansen
- From: hansen@pegasus.att.com (Tony L. Hansen)
- Subject: Re: mbox file format wanted !!!
- Organization: AT&T
- Date: Tue, 12 Jan 1993 05:07:18 GMT
- Message-ID: <1993Jan12.050718.9664@cbnewsk.cb.att.com>
- Summary: the format
- Keywords: mail, mailbox
- References: <1993Jan3.222004.28788@uts.uni-c.dk>
- Sender: hansen@cbnewsk.cb.att.com (tony.l.hansen)
- Lines: 36
-
- < From: povlphp@uts.uni-c.dk (Povl H. Pedersen)
- < Header says it all. I want the format of the mbox file that is tandard on
- < unix systems. I would prefer not to parse lots of source code to find it.
-
- There are two types of headers: UNIX Postmark headers and RFC 822 headers.
-
- The UNIX Postmark headers are the lines which start with "From " and ">From ".
- They look like
-
- From <user> <date-string>
- or
- From <user> <date-string> remote from <system>
-
- The RFC 822 headers are the Keyword: style headers.
-
- A mailbox consists of multiple messages, one after the other. A mail message
- looks like this:
-
- 1 "From " UNIX postmark header
- 0 or more ">From " UNIX postmark headers
- 0 or more RFC 822 headers
- 0 or 1 blank line
- the message body
-
- On some UNIX systems, if one of the RFC 822 headers is a "Content-Length:"
- header, then the message body consists of exactly the number of bytes
- specified in that header.
-
- If there is no "Content-Length:" header, then the next message is started by
- a line which starts with the characters "From ".
-
- I hope this helps.
-
- Tony Hansen
- hansen@pegasus.att.com, tony@attmail.com
- att!pegasus!hansen, attmail!tony
-