[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    mmdf(5) manual page Table of Contents

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: