Exemplo n.º 1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="onwer">Owner collection.</param>
 /// <param name="id">Message ID.</param>
 /// <param name="uid">Message UID.</param>
 /// <param name="size">Message size in bytes.</param>
 internal POP3_Message(POP3_MessageCollection onwer, string id, string uid, long size)
 {
     m_pOwner = onwer;
     m_ID     = id;
     m_UID    = uid;
     m_Size   = size;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="onwer">Owner collection.</param>
 /// <param name="id">Message ID.</param>
 /// <param name="uid">Message UID.</param>
 /// <param name="size">Message size in bytes.</param>
 internal POP3_Message(POP3_MessageCollection onwer,string id,string uid,long size)
 {
     m_pOwner = onwer;
     m_ID     = id;
     m_UID    = uid;
     m_Size   = size;
 }
Exemplo n.º 3
0
        private string m_UserName = ""; // Holds USER command value

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="sessionID">Session ID.</param>
        /// <param name="socket">Server connected socket.</param>
        /// <param name="bindInfo">BindInfo what accepted socket.</param>
        /// <param name="server">Reference to server.</param>
        internal POP3_Session(string sessionID,SocketEx socket,IPBindInfo bindInfo,POP3_Server server)
            : base(sessionID,socket,bindInfo,server)
        {
            m_pServer       = server;
            m_POP3_Messages = new POP3_MessageCollection();

            // Start session proccessing
            StartSession();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Gest pop3 messages info.
        /// </summary>
        /// <param name="session"></param>
        /// <param name="messages"></param>
        internal virtual void OnGetMessagesInfo(POP3_Session session, POP3_MessageCollection messages)
        {
            GetMessagesInfo_EventArgs oArg = new GetMessagesInfo_EventArgs(session, messages, session.UserName);

            if (this.GetMessgesList != null)
            {
                this.GetMessgesList(this, oArg);
            }
        }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="session">Reference to pop3 session.</param>
 /// <param name="messages"></param>
 /// <param name="mailbox">Mailbox name.</param>
 public GetMessagesInfo_EventArgs(POP3_Session session,POP3_MessageCollection messages,string mailbox)
 {
     m_pSession       = session;
     m_pPOP3_Messages = messages;
     m_UserName       = mailbox;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="session">Reference to pop3 session.</param>
 /// <param name="messages"></param>
 /// <param name="mailbox">Mailbox name.</param>
 public GetMessagesInfo_EventArgs(POP3_Session session, POP3_MessageCollection messages, string mailbox)
 {
     m_pSession       = session;
     m_pPOP3_Messages = messages;
     m_UserName       = mailbox;
 }