Tres Seaver wrote:
Ryan Hughes wrote:
Tres Seaver wrote: <snip>
Maybe we need to add a property to the WorldPilot object which lets you configure the folder passed to the initial list() call (e.g., to be something like "~/Mail"). This parameter would default to the empty string, so that the Cyrus clients would continue to operate as before. I'll see if I can't come up with some kind of patch.
Just curious, what does the result of a LIST with "~/Mail" look like on UW IMAP? What is the top node labeled as? I guess I could add a parameter to control the behaviour of the LIST call.
I checked the WU IMAP mailing list, and found the following:
http://www.washington.edu/imap/listarch/msg06947.html
In short, Mark Crispin (the author of WU IMAP) strongly recommends avoiding the "*" wildcard altogether, using rather "%". In this case, the '\NoSelect' flag indicates (I think) that the item is a directory, and could be drilled into; or perhaps the '\NoInferiors' says "this is a leaf -- don't descend" (my ignorance of the IMAP protocol is showing).
I guess the idea here is to avoid using LIST once, but to do it "on demand" as the user drills down the tree. Mark also recommends using "LSUB" to pick up "subscribed" mail folders.
Hope this helps!
Thanks. We will eventually be looking into optimisations for the list command, to reduce the depth of braches traversed. If any UW IMAP users can confirm which flags represent what in that context, that would be helpful. Then we could avoid listing them. Cheers, Ryan
Tres. -- ========================================================= Tres Seaver tseaver@palladion.com 713-523-6582 Palladion Software http://www.palladion.com
-- Ryan Hughes <rh@n-h.net> Neuberger & Hughes GmbH http://www.n-h.net ___________________________________________________ WorldPilot Get Synched - http://www.worldpilot.org The Open Source Personal Information Manager Server Powered by Python and Zope - http://www.zope.org