the standard for the top level is $home/.maildir or $home/Maildir (cyrus).
you can get away with only working with $MAILDIR/new if you don't
have a need for maildir-style folders (which start with a "." and get utf-7-
encoded).

there is disagreement about the format of the unique.file.name. the cyrus 
maildir man page says this:

      A new unique filename is created  using  one  of  two  possible  forms:
       ``time.MusecPpid.host'',  or  ``time.MusecPpid_unique.host''.  ``time''
       and ``usec'' is the current system time, obtained from gettimeofday(2).
       ``pid''  is  the  process number of the process that is delivering this
       message to the maildir.  ``host'' is the name of the machine where  the
       mail  is  being  delivered.

their maildir files look like this

1136731697.M580106P15382V0000000000000303I0009030C_0.conchobor.berzerked.org,S=2872

(the S=2872 is the file size. i'm not sure why stat is so expensive on their 
machine.)
but postfix gives you this:

1137764424.Vfe04I16e1M435392.dexter-peak.quanstro.net

and fetchmail gives you this

1125641448.1984_0.dexter-peak

i don't use djb's stuff, but i'm sure he disagrees with all of these formats. 
;-)
i see the important part of the file format to be time "." unique-extension.

i wrote a set of programs for reading mail in maildirs (from, mcat, mimedesc,
e.g.). they get buy by not paying any attention to the file names.

- erik

John Barham <[EMAIL PROTECTED]> writes

| 
| > Maildir uses the structure folder/{tmp,cur,new}/unique.file.name.
| > The files are required to be uniquely named, and there is a convention for
| > the intermediate directories.  djb has a brief but detailed specification
| > under cr.yp.to somewhere, if you want to google for it.
| 
| http://cr.yp.to/proto/maildir.html

Reply via email to