[ciapug] IMAP Folder List

David Champion ciapug@cialug.org
Thu, 10 Mar 2005 10:48:05 -0600


TWIG shows them in an <option> list... which is way easy to do.

-dc

Jerry Weida wrote:
> I believe that the squirrelmail project uses a multi-deminsional array
> for this.  They then iterate through the array and show the folders in
> an "explorer" type view with the subfolders under the folder they
> appear in.
> 
> 
> On Thu, 10 Mar 2005 01:07:01 -0600, Jonathan Bailey <jcbailey@code0.net> wrote:
> 
>>Ok.. I'm writing an IMAP client, and I'm stuck on how to display the
>>folder tree.... Here is how it's returned from the server:
>>
>>(as an array - one line/element)
>>
>>INBOX.Drafts
>>INBOX.Trash
>>INBOX.Sent
>>INBOX.SomeFolder
>>INBOX.SomeFolder.SubFolder.
>>INBOX.SomeFolder.SubFolder2
>>INBOX.SomeFolder2
>>
>>What is the best datatype for this? (multi-deminsional array), and how
>>do I implement it?
>>
>>Jon