Provides data for GetFolderACL event.
Example #1
0
        internal IMAP_GETACL_eArgs OnGetFolderACL(IMAP_Session session, string folderName)
        {
            IMAP_GETACL_eArgs eArgs = new IMAP_GETACL_eArgs(session, folderName);

            if (this.GetFolderACL != null)
            {
                this.GetFolderACL(session, eArgs);
            }

            return(eArgs);
        }
 private void IMAP_Server_GetFolderACL(object sender,IMAP_GETACL_eArgs e)
 {
     try{
         DataView dv = m_pApi.GetFolderACL(e.Session.UserName,e.Session.UserName,e.Folder);
         foreach(DataRowView drV in dv){
             e.ACL.Add(drV["User"].ToString(),IMAP_Utils.ACL_From_String(drV["Permissions"].ToString()));
         }
     }
     catch(Exception x){
         e.ErrorText = x.Message;
     }
 }