Add() public method

Adds folder to folders list.
public Add ( string folder, bool selectable ) : void
folder string Full path to folder, path separator = '/'. Eg. Inbox/myFolder .
selectable bool Gets or sets if folder is selectable(SELECT command can select this folder).
return void
        private void IMAP_Server_GetSubscribedFolders(object sender, IMAP_Folders e)
        {
            IMAP_Session ses = (IMAP_Session)sender;

            string[] folders = m_pAPI.GetSubscribedFolders(ses.UserName);
            foreach(string folder in folders){
                e.Add(folder);
            }
        }
        private void IMAP_Server_GetFolders(object sender, IMAP_Folders e)
        {
            IMAP_Session ses = (IMAP_Session)sender;

            string[] folders = m_pApi.GetFolders(ses.UserName,true);
            foreach(string folder in folders){
                e.Add(folder,true);
            }
        }