You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImapClient c = new ImapClient();
c.Connect("imap.gmail.com", 993, true);
c.Authenticate(...);
var folderSrc = c.GetFolder("[Gmail]/All Mail");
folderSrc.Open(FolderAccess.ReadWrite);
for (int i = 0; i <folderSrc.Count; i++)
{
var message = folderSrc.GetMessage(i);
folderSrc.AddFlags(i, MessageFlags.Deleted, false);
}
AddFlags throws a protocol exception:
[MailKit.Net.Imap.ImapProtocolException] {"Unexpected token in IMAP response: [atom: 0]"}
HResult = 0x80131500
Protocol Logger says:
C: A00000009 STORE 1 +FLAGS (\Deleted)
S: * 1 FETCH (FLAGS (\Deleted) MODSEQ (0))
S: A00000009 OK Success
Server is Gmail on a Google Apps domain.
The text was updated successfully, but these errors were encountered:
Relevant code is:
AddFlags throws a protocol exception:
[MailKit.Net.Imap.ImapProtocolException] {"Unexpected token in IMAP response: [atom: 0]"}
HResult = 0x80131500
Protocol Logger says:
Server is Gmail on a Google Apps domain.
The text was updated successfully, but these errors were encountered: