我试图在mailkit中找到一个在IMAP中执行命令“Execute append”的方法,在C#中我会这样做:
MailMessage mg = null;
using (ImapClient cl = new ImapClient("imap.gmail.com"))
{
cl.Port = 993;
cl.Ssl = true;
cl.UserName = "xxxxx";
cl.Password = "yyyyy";
var bl = cl.Authenticate();
if (bl == true)
{
//Add Draft
var smg = new SmtpMessage("xxx@gmail.com", "yyy@hotmail.com","yyy@hotmail.com", "This is a test mail.", "Hi.Is it correct??");
cl.ExecuteAppend("GMail/Drafts", smg.GetDataText(), "\\Draft",DateTimeOffset.Now);
}
}
但是观察 MailKit ImapClient,我没有这个选项。
我如何在MailKit IMAP中执行附加?