pmengal / MailSystem.NET

Great email library for C#.
GNU Lesser General Public License v3.0
270 stars 136 forks source link

IMAP4 Methods Example to check if a folder exists in email server, and check if a message object is read or unread? #19

Open maddisn opened 7 years ago

maddisn commented 7 years ago

Hello Reinaldo Coelho Sartorelli,

I want examples of the following methods if they exist within the IMAP library.

1) 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.

2) 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.