I'm evaluating Rebex Secure Mail and have the following problem.
I need to set the flags of a mail (IMAP). The host is outlook.office365.com.
If I use:
Using mailClient As New Imap
Dim result = mailClient.Connect("outlook.office365.com", 993, SslMode.Implicit)
get some messages
entry.SequenceNumber = 1
mailClient.SetMessageFlags(entry.SequenceNumber, ImapFlagAction.Add, ImapMessageFlags.Flagged)
an exception "Command received in Invalid state (NO)." is thrown.
Another product, which I'm evaluaiting, sets the flag without problems.
What's going wrong?