In UNIX, the original mail
and the Berkeley mail
(in Sys-C UNIX the Berkeley MUA [mail user agent] was called mailx
) stored messages in /var/spool/mail/username
, and if you saved messages they were moved to your /home/username/MAIL
file.
All the messages were in a single file separated by a blank line and starting with a single From - date_string
line, called the mbox
format. Note that each message also should also contain a From:
line that is part of the standard RFC email format.
There were a couple of alternatives to mail
, namely mh
, elm
and mutt
. These used a directory hierarchy called maildir
format, essentially using the filesystem as a database.
When Netscape Communicator came out, and later broke up into Firefox and Thunderbird, it retained the mbox
format from UNIX and Linux, but maintained a different file for each "account" or source of email. Note that to retain the speed of using the filesystem style maildir
format (yes it was faster for lots of emails), Netscape invented an index file ending in *.msf
.
- More information on the
mbox
format can be found at this LoC site
- More information on the
maildir
format can be found e.g. here