User Tools

Site Tools


Table of Contents


The maildir standard mailbox format is described in maildir(5).

  • Each maildir contains a set of subdirectories: cur, new and tmp.
  • Enhanced maildirs support subfoldering through contained maildirs whose name starts with a dot (e.g. maildir/.sub/{cur,new,tmp}).
  • Many IMAP implementations are maildir compatible.


  • Each subfolder name by convention has a leading dot (.).
  • The internal structure of a subfolder is exactly the same as a regular maildir, i.e. the three subdirectories cur, new and tmp must exist.

Subfolders of a subfolder don't reside in the subfolder! I.e. the hierarchy ends on the subfolder level, all consecutive subfolders are constructed by using special names. See the following example:




Here Sub is a subfolder of the subfolder Folder.


Is a simple script to create maildirs or maildir subfolders.

Use the following command to create a subfolder inside a maildir:

maildirmake -f <SubfolderName> <PathToMaildir>
email/maildir.txt · Last modified: 2009/01/12 13:36 (external edit)