Skip to content
Dmitry Boyarintsev edited this page Nov 14, 2021 · 5 revisions

The class implements IMAP client protocol communication.

Public API

SelectMailbox

 Mailbox SelectMailbox(string mailboxName)

The method changes the current mailbox (directory/folder) selected. This affects the methods that depend on the the "current" mailbox selection. (i.e. GetMessageCount)

GetMessageCount

There are two methods implemented provided:

 int GetMessageCount()  

The method retrieves the number of email in the selected mailbox. (if none selected, attempts to read "INBOX") The method is part of IMailClient interface.

 int GetMessageCount(string mailbox)

The method retrieves the number of email in the mailbox specified by name.



              
Clone this wiki locally