Пример #1
0
        /// <summary>
        /// Raises event 'GetMailboxes'.
        /// </summary>
        /// <param name="session">Reference to IMAP session.</param>
        /// <param name="referenceName">Mailbox reference.</param>
        /// <param name="mailBox">Mailbox search pattern or mailbox.</param>
        /// <returns></returns>
        internal IMAP_Folders OnGetMailboxes(IMAP_Session session, string referenceName, string mailBox)
        {
            IMAP_Folders retVal = new IMAP_Folders(session, referenceName, mailBox);

            if (this.GetFolders != null)
            {
                this.GetFolders(session, retVal);
            }

            return(retVal);
        }
Пример #2
0
		/// <summary>
		/// Raises event 'GetMailboxes'.
		/// </summary>
		/// <param name="session">Reference to IMAP session.</param>
		/// <param name="referenceName">Mailbox reference.</param>
		/// <param name="mailBox">Mailbox search pattern or mailbox.</param>
		/// <returns></returns>
		internal IMAP_Folders OnGetMailboxes(IMAP_Session session,string referenceName,string mailBox)
		{
			IMAP_Folders retVal = new IMAP_Folders(session,referenceName,mailBox);
			if(this.GetFolders != null){
				this.GetFolders(session,retVal);
			}

			return retVal;
		}