示例#1
0
        /// <summary>
        /// Raises <b>Started</b> event.
        /// </summary>
        /// <param name="reply">Default POP3 server reply.</param>
        /// <returns>Returns event args.</returns>
        private POP3_e_Started OnStarted(string reply)
        {
            POP3_e_Started eArgs = new POP3_e_Started(reply);

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

            return eArgs;
        }
示例#2
0
 private void m_pPop3Server_Session_Started(object sender,POP3_e_Started e)
 {
     if(!IsAccessAllowed(Service_enum.POP3,((POP3_Session)sender).RemoteEndPoint.Address)){
         e.Response = "-ERR Your IP address is blocked.";
     }
 }