I am working on MailClient and I want to set Multipal Flags for Eg. SEEN, UNSEEN so how I can set in C#,
I had pass this command like this but it will give me error. like BAD command.
so the my command like this.
byte[] commandBytes = System.Text.Encoding.ASCII.GetBytes((@”$ UID SEARCH UNSEEN \SEEN” + “\r\n”));
Thanks..
Don’t use backslash, this is the correct request:
Are you sure you want write you own IMAP client from scrach? There are some opensource libraries, as well as paid ones (My Mail.dll IMAP component for example).