/// <summary> /// Raises <b>Select</b> event. /// </summary> /// <param name="cmdTag">Command tag.</param> /// <param name="folder">Folder name with optional path.</param> /// <returns>Returns event args.</returns> private IMAP_e_Select OnSelect(string cmdTag,string folder) { IMAP_e_Select eArgs = new IMAP_e_Select(cmdTag,folder); if(this.Select != null){ this.Select(this,eArgs); } return eArgs; }
private void m_pImapServer_Session_Select(object sender,IMAP_e_Select e) { try{ IMAP_Session ses = (IMAP_Session)sender; // FIX ME: e.FolderUID = 1237333; } catch(Exception x){ e.ErrorResponse = new IMAP_r_ServerStatus(e.CmdTag,"NO","Error: " + x.Message); } }