+1 vote

(a) How do I move emails from the "Inbox" to a folder names "International"
(b) How do I get the read/unread status of an email in the Inbox?
(c) How do I set the read/unread status of an email to UNREAD?
(d) DO you have an SDK?

by

1 Answer

0 votes

(a) How do I move emails from the "Inbox" to a folder names "International"

Use Imap.MoveByUID method.

https://www.limilabs.com/blog/move-emails-to-different-folder-with-imap

(b) How do I get the read/unread status of an email in the Inbox?

1.
If you have uids:
Use Imap.GetMessageInfoByUID(List uids)
Examine MessageInfo.Flags - unseen messages have Flag.Unseen in this collection.

2.
If you want to get uids of unseen messages:
Use Imap.Search(Flag.Unseen).

(c) How do I set the read/unread status of an email to UNREAD?

GetMessageByUID changes this automatically (Peek** methods don't)
You can use *Imap.MarkMessageSeenByUID
, Imap.MarkMessageUnseenByUID

https://www.limilabs.com/blog/mark-emails-as-read-with-imap

(d) Do you have an SDK?

You mean documentation:
https://www.limilabs.com/static/mail/documentation/

Samples:
https://www.limilabs.com/mail/samples

by (301k points)
...