Chris G cl@isbd.net wrote:
http://docs.python.org/lib/mailbox-maildir.html http://docs.python.org/lib/mailbox-mbox.html
[...]
In fact the Maildir sub-class documentation is not at all clear about what you get when you call list_folders(), a list of folders at what level in the hierarchy?
Warning: I'm a postmaster, but my python isn't expert.
Under the current Maildir, I guess, but you're right that it's not at all clear. Maildir supports nested folders (directories in directories) which Mbox doesn't (can't have files in files, usually). I think the key section of the explanation is:
"Folders of the style introduced by the Courier mail transfer agent are also supported. Any subdirectory of the main mailbox is considered a folder if "." is the first character in its name."
Hope that explains,