Beispiel #1
0
 /// <summary>
 /// Raises <b>NewMessageData</b> event.
 /// </summary>
 /// <param name="msgInfo">IMAP message info which message data it is.</param>
 /// <param name="msgData">Message data. NOTE: This value must be as specified by <see cref="IMAP_e_Fetch.FetchDataType"/>.</param>
 private void OnNewMessageData(IMAP_MessageInfo msgInfo, Mail_Message msgData)
 {
     if (this.NewMessageData != null)
     {
         this.NewMessageData(this, new e_NewMessageData(msgInfo, msgData));
     }
 }
Beispiel #2
0
            /// <summary>
            /// Default constructor.
            /// </summary>
            /// <param name="msgInfo">Message info.</param>
            /// <param name="msgData">Message data stream.</param>
            /// <exception cref="ArgumentNullException">Is raised when <b>msgInfo</b> is null reference.</exception>
            public e_NewMessageData(IMAP_MessageInfo msgInfo, Mail_Message msgData)
            {
                if (msgInfo == null)
                {
                    throw new ArgumentNullException("msgInfo");
                }

                m_pMsgInfo = msgInfo;
                m_pMsgData = msgData;
            }
Beispiel #3
0
        /// <summary>
        /// Adds specified message for FETCH response processing.
        /// </summary>
        /// <param name="msgInfo">IMAP message info which message data it is.</param>
        /// <param name="msgData">Message data. NOTE: This value must be as specified by <see cref="IMAP_e_Fetch.FetchDataType"/>.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>msgInfo</b> or <b>msgData</b> is null reference.</exception>
        public void AddData(IMAP_MessageInfo msgInfo, Mail_Message msgData)
        {
            if (msgInfo == null)
            {
                throw new ArgumentNullException("msgInfo");
            }
            if (msgData == null)
            {
                throw new ArgumentNullException("msgData");
            }

            OnNewMessageData(msgInfo, msgData);
        }
Beispiel #4
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="folder">Folder name with optional path.</param>
        /// <param name="msgInfo">Message info.</param>
        /// <param name="response">Default IMAP server response.</param>
        /// <exception cref="ArgumentNullException">Is riased when <b>folder</b>,<b>msgInfo</b> or <b>response</b> is null reference.</exception>
        internal IMAP_e_Expunge(string folder, IMAP_MessageInfo msgInfo, IMAP_r_ServerStatus response)
        {
            if (folder == null)
            {
                throw new ArgumentNullException("folder");
            }
            if (msgInfo == null)
            {
                throw new ArgumentNullException("msgInfo");
            }
            if (response == null)
            {
                throw new ArgumentNullException("response");
            }

            m_pResponse = response;
            m_Folder    = folder;
            m_pMsgInfo  = msgInfo;
        }
Beispiel #5
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="folder">Folder name with optional path.</param>
        /// <param name="msgInfo">Message info.</param>
        /// <param name="flagsSetType">Flags set type.</param>
        /// <param name="flags">Flags.</param>
        /// <param name="response">Default IMAP server response.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>folder</b>,<b>msgInfo</b>,<b>flags</b> or <b>response</b> is null reference.</exception>
        internal IMAP_e_Store(string folder, IMAP_MessageInfo msgInfo, IMAP_Flags_SetType flagsSetType, string[] flags, IMAP_r_ServerStatus response)
        {
            if (folder == null)
            {
                throw new ArgumentNullException("folder");
            }
            if (msgInfo == null)
            {
                throw new ArgumentNullException("msgInfo");
            }
            if (flags == null)
            {
                throw new ArgumentNullException("flags");
            }

            m_pResponse = response;
            m_Folder    = folder;
            m_pMsgInfo  = msgInfo;
            m_SetType   = flagsSetType;
            m_pFlags    = flags;
        }
Beispiel #6
0
 /// <summary>
 /// Adds specified message for FETCH response processing.
 /// </summary>
 /// <param name="msgInfo">IMAP message info.</param>
 internal void AddData(IMAP_MessageInfo msgInfo)
 {
     OnNewMessageData(msgInfo, null);
 }