Hidden IMAP Mailboxes

Question:

I developed a mail client who download mail messages from a Cyrus IMAP server.

The INBOX mailbox has some “children”.

Some of them are defined as hidden, then using e-mail client such as Outlook express or Thunderbird they are not shown while on my client, ListMailboxes(“”,”*”) method (CkImap class) detect them and my application display them.

How can I avoid displaying hidden sub-folders?

Answer:

It is not the IMAP server that keeps a “hidden” flag for each folder. Email clients such as Outlook or Thunderbird are keeping information locally about what folders are to be displayed and what folders are hidden. Your application would need to do the same.

Tags :