On Mon, Aug 13, 2007 at 10:32:56AM +0100, MJ Ray wrote:
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,
Yes, probably, though I don't think many MUAs support nested folders as you describe when using maildir. It's even a bit questionable whether it's allowed by the original maildir specification as I think you were supposed to have *only* cur, new and tmp sub-directories in a maildir folder.
For example Dan Bernstein himself says:-
Can a maildir contain more than tmp, new, cur? Yes:
* .qmail: used to do direct deliveries with qmail-local. * bulletintime: empty file, used by system-wide bulletin programs. * bulletinlock: empty file, used by system-wide bulletin programs. * seriallock: empty file, used to serialize AutoTURN.
Anyway I'll press on and see what actually happens, I may even get around to reporting the result back here! :-)
Thanks for the help.