Ejemplo n.º 1
0
        /// <summary>
        /// Raises <b>Started</b> event.
        /// </summary>
        /// <param name="response">Default IMAP server response.</param>
        /// <returns>Returns event args.</returns>
        private IMAP_e_Started OnStarted(IMAP_r_u_ServerStatus response)
        {
            IMAP_e_Started eArgs = new IMAP_e_Started(response);            
            if(this.Started != null){                
                this.Started(this,eArgs);
            }

            return eArgs;
        }
Ejemplo n.º 2
0
 private void m_pImapServer_Session_Started(object sender,IMAP_e_Started e)
 {
     if(!IsAccessAllowed(Service_enum.IMAP,((IMAP_Session)sender).RemoteEndPoint.Address)){
         e.Response = new IMAP_r_u_ServerStatus("NO","Your IP address is blocked.");
     }
 }