mmdf(5)


NAME

   MMDF - Multi-channel Memorandum Distribution Facility mailbox format

DESCRIPTION

   This  document  describes the MMDF mailbox format used by some MTAs and
   MUAs (i.e.  scomail(1)) to store mail messages locally.

   An MMDF mailbox is a text file containing an arbitrary number of e-mail
   messages.   Each  message consists of a postmark, followed by an e-mail
   message  formatted  according  to  RFC822  /  RFC2822,  followed  by  a
   postmark. The file format is line-oriented. Lines are separated by line
   feed characters (ASCII 10).  A  postmark  line  consists  of  the  four
   characters "^A^A^A^A" (Control-A; ASCII 1).

   Example of a MMDF mailbox holding two mails:

          ^A^A^A^A
          From: example@example.com
          To: example@example.org
          Subject: test

          >From what I learned about the MMDF-format:
          ^A^A^A^A
          ^A^A^A^A
          From: example@example.com
          To: example@example.org
          Subject: test 2

          bar
          ^A^A^A^A

   In  contrast  to  most other single file mailbox formats like MBOXO and
   MBOXRD (see mbox(5)) there is no need to quote/dequote "From "-lines in
   MMDF mailboxes as such lines have no special meaning in this format.

   If the modification-time (usually determined via stat(2)) of a nonempty
   mailbox file is greater than the access-time the  file  has  new  mail.
   Many  MUAs  place  a  Status:  header in each message to indicate which
   messages have already been read.

LOCKING

   Since MMDF files  are  frequently  accessed  by  multiple  programs  in
   parallel, MMDF files should generally not be accessed without locking.

   Three  different  locking  mechanisms (and combinations thereof) are in
   general use:

   *      fcntl(2) locking  is  mostly  used  on  recent,  POSIX-compliant
          systems. Use of this locking method is, in particular, advisable
          if MMDF files are  accessed  through  the  Network  File  System
          (NFS),  since  it  seems the only way to reliably invalidate NFS
          clients' caches.

   *      flock(2) locking is mostly used on BSD-based systems.

   *      Dotlocking is used on all kinds of systems. In order to lock  an
          MMDF file named folder, an application first creates a temporary
          file with a unique name in the directory  in  which  the  folder
          resides.  The  application  then tries to use the link(2) system
          call to create a hard link named folder.lock  to  the  temporary
          file.   The  success  of  the  link(2)  system  call  should  be
          additionally verified using  stat(2)  calls.  If  the  link  has
          succeeded,   the   mail  folder  is  considered  dotlocked.  The
          temporary file can then safely be unlinked.

          In order to release the lock, an application  just  unlinks  the
          folder.lock file.

   If  multiple methods are combined, implementors should make sure to use
   the non-blocking variants of the fcntl(2) and flock(2) system calls  in
   order to avoid deadlocks.

   If  multiple  methods are combined, an MMDF file must not be considered
   to have been successfully  locked  before  all  individual  locks  were
   obtained.  When  one  of  the  individual  locking  methods  fails,  an
   application should release all  locks  it  acquired  successfully,  and
   restart  the  entire  locking  procedure  from  the  beginning, after a
   suitable delay.

   The locking mechanism used on a particular system is a matter of  local
   policy,  and  should be consistently used by all applications installed
   on the system which access MMDF files. Failure to do so may  result  in
   loss of e-mail data, and in corrupted MMDF files.

CONFORMING TO

   MMDF is not part of any currently supported standard.

HISTORY

   MMDF was developed at the University of Delaware by Dave Crocker.

SEE ALSO

   scomail(1),  fcntl(2),  flock(2),  link(2),  stat(2),  mbox(5), RFC822,
   RFC2822

AUTHOR

   Urs Janssen <urs@tin.org>





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.