I am fetching the mailboxes using :
Is there any way to identify the mailbox type.
For eg: Inbox folder should not get deleted. Thus while checkin that, when i try to delete INBOX folder, i get the following error log.
This log mentions INBOX is an Internal folder.
So, are there any more types which we can get with mailbox to differentiate between Primary mailboxes like: Inbox, Drafts, Sent, Trash and other custom folders. Accordingly we have to reflect on UI when user wants to edit mailboxes.
asked Jul 16 '14 at 09:29
See the API for the Mailboxes class: http://www.chilkatsoft.com/refdoc/csMailboxesRef.html
Examine the flags of each mailbox...
answered Jul 16 '14 at 10:26
Hi.. thanks for your response. But its still unclear to me. I checked the GetFlags method on the CKoMailboxes received. And for a gmail account i am receiving following flags:
*Madhura123: HasChildren Madhura123/Madhura1234: HasNoChildren*
[Gmail]/All Mail: HasNoChildren,All
[Gmail]/Sent Mail: HasNoChildren,Sent
From this log its still not clear, which are the primary folders and which are custom made by the user. Like for eg: Madhura123: HasChildren
Madhura123/Madhura1234: HasNoChildren only specifies whether the mailbox contains any subfolders or not.
So is there any way to get the type of the folder.
Thanks again in advance for any help.. !
answered Jul 17 '14 at 11:18