예제 #1
0
        /// <summary>
        /// Raises <b>ListRights</b> event.
        /// </summary>
        /// <param name="folder">Folder name with optional path.</param>
        /// <param name="identifier">ACL identifier (normally user or group name).</param>
        /// <param name="response">Default IMAP server response.</param>
        /// <returns>Returns event args.</returns>
        private IMAP_e_ListRights OnListRights(string folder,string identifier,IMAP_r_ServerStatus response)
        {
            IMAP_e_ListRights eArgs = new IMAP_e_ListRights(folder,identifier,response);
            if(this.ListRights != null){
                this.ListRights(this,eArgs);
            }

            return eArgs;
        }
예제 #2
0
 private void m_pImapServer_Session_ListRights(object sender,IMAP_e_ListRights e)
 {
     try{
         e.ListRightsResponse = new IMAP_r_u_ListRights(e.Folder,e.Identifier,"","l r s w i p c d a");
     }
     catch(Exception x){
         e.Response = new IMAP_r_ServerStatus(e.Response.CommandTag,"NO","Error: " + x.Message);
     }
 }