I am using Aspose.Email v21.4.0.
With the following code I am trying to get an email message from an Imap server.
Currently, if the email message is marked as read, right after FetchMessage is executed it marks it as read . Is there a way to go around it? as I don’t want to make changes on message flags, just fetching its info.
ImapClient imapClient = new ImapClient(“imap-mail.outlook.com”, “user-name”, “password”);
imapWrapper.SecurityOptions = Aspose.Email.Clients.SecurityOptions.SSLImplicit;
imapWrapper.Port = 993;
imapClient.FetchMessage(uniqueId); //let’s assume I have the right uniqueId