Esempio n. 1
0
        private void m_pImapServer_Session_Unsubscribe(object sender,IMAP_e_Folder e)
        {
            IMAP_Session ses = (IMAP_Session)sender;

			m_pApi.UnSubscribeFolder(ses.AuthenticatedUserIdentity.Name,e.Folder);
        }
Esempio n. 2
0
        /// <summary>
        /// Raises <b>OnUnsubscribe</b> event.
        /// </summary>
        /// <param name="cmdTag">Command tag.</param>
        /// <param name="folder">Folder name with optional path.</param>
        /// <param name="response">Default IMAP server response.</param>
        /// <returns>Returns event args.</returns>
        private IMAP_e_Folder OnUnsubscribe(string cmdTag,string folder,IMAP_r_ServerStatus response)
        {
            IMAP_e_Folder eArgs = new IMAP_e_Folder(cmdTag,folder,response);
            if(this.Unsubscribe != null){
                this.Unsubscribe(this,eArgs);
            }

            return eArgs;
        }
Esempio n. 3
0
        private void m_pImapServer_Session_Delete(object sender,IMAP_e_Folder e)
        {
            try{
				IMAP_Session ses = (IMAP_Session)sender;

				m_pApi.DeleteFolder(ses.AuthenticatedUserIdentity.Name,ses.AuthenticatedUserIdentity.Name,e.Folder);
			}
			catch(Exception x){
				e.Response = new IMAP_r_ServerStatus(e.Response.CommandTag,"NO","Error: " + x.Message);
			}
        }