home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / mail / misc / 4330 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.6 KB  |  50 lines

  1. Newsgroups: comp.mail.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsk!pegasus!hansen
  3. From: hansen@pegasus.att.com (Tony L. Hansen)
  4. Subject: Re: mbox file format wanted !!!
  5. Organization: AT&T
  6. Date: Tue, 12 Jan 1993 05:07:18 GMT
  7. Message-ID: <1993Jan12.050718.9664@cbnewsk.cb.att.com>
  8. Summary: the format
  9. Keywords: mail, mailbox
  10. References: <1993Jan3.222004.28788@uts.uni-c.dk>
  11. Sender: hansen@cbnewsk.cb.att.com (tony.l.hansen)
  12. Lines: 36
  13.  
  14. < From: povlphp@uts.uni-c.dk (Povl H. Pedersen)
  15. < Header says it all. I want the format of the mbox file that is tandard on
  16. < unix systems. I would prefer not to parse lots of source code to find it.
  17.  
  18. There are two types of headers: UNIX Postmark headers and RFC 822 headers.
  19.  
  20. The UNIX Postmark headers are the lines which start with "From " and ">From ".
  21. They look like
  22.  
  23.     From <user> <date-string>
  24. or
  25.     From <user> <date-string> remote from <system>
  26.  
  27. The RFC 822 headers are the Keyword: style headers.
  28.  
  29. A mailbox consists of multiple messages, one after the other. A mail message
  30. looks like this:
  31.  
  32.     1        "From " UNIX postmark header
  33.     0 or more    ">From " UNIX postmark headers
  34.     0 or more    RFC 822 headers
  35.     0 or 1        blank line
  36.     the message body
  37.  
  38. On some UNIX systems, if one of the RFC 822 headers is a "Content-Length:"
  39. header, then the message body consists of exactly the number of bytes
  40. specified in that header.
  41.  
  42. If there is no "Content-Length:" header, then the next message is started by
  43. a line which starts with the characters "From ".
  44.  
  45. I hope this helps.
  46.  
  47.                     Tony Hansen
  48.                 hansen@pegasus.att.com, tony@attmail.com
  49.                 att!pegasus!hansen, attmail!tony
  50.