MailSystem.NET
MailSystem.NET copied to clipboard
IMAP4 Methods Example to check if a folder exists in email server, and check if a message object is read or unread?
Hello Reinaldo Coelho Sartorelli,
I want examples of the following methods if they exist within the IMAP library.
-
Check to see if a mailbox exists on email server ifFolderExists = true; //then do not create it (otherwise create it) I have the method for create mailbox, but I want to check if a mailbox exists on the server before I create it.
-
Is there a bool method that can check if a messageObject is read or unread? bool = message.isRead; //return true or false I move messages according to whether if it is read or not, and I use for unit testing purpose.
Thanks.