Esempio n. 1
0
        /// <summary>
        /// Raises <b>GetMessagesInfo</b> event.
        /// </summary>
        /// <param name="folder">Folder name with optional path.</param>
        /// <returns>Returns event args.</returns>
        private IMAP_e_MessagesInfo OnGetMessagesInfo(string folder)
        {
            IMAP_e_MessagesInfo eArgs = new IMAP_e_MessagesInfo(folder);
            if(this.GetMessagesInfo != null){
                this.GetMessagesInfo(this,eArgs);
            }

            return eArgs;
        }
Esempio n. 2
0
        private void m_pImapServer_Session_GetMessagesInfo(object sender,IMAP_e_MessagesInfo e)
        {
            IMAP_Session ses = (IMAP_Session)sender;

            List<IMAP_MessageInfo> msgs = new List<IMAP_MessageInfo>();
            m_pApi.GetMessagesInfo(
                ses.AuthenticatedUserIdentity.Name,
                ses.AuthenticatedUserIdentity.Name,
                e.Folder,
                msgs
            );
            e.MessagesInfo.AddRange(msgs);            
        }