mbox vs Maildir Delivery

mbox format for compatibility

  1. Locks mbox
  2. Appends to mbox
  3. Unlocks mbox

Maildir format for reliability


	~/Maildir/	--- new/
			--- cur/
			--- tmp/

  1. Writes message to ˜/Maildir/tmp/
  2. fsync(), close().
  3. link from ˜/Maildir/new/
  4. unlink ˜/Maildir/tmp/

Back