从 IMAP 服务器删除邮件
如何从 IMAP 服务器删除邮件。我正在使用 chilkat
Chilkat.EmailBundle bundle = imapClient.FetchHeaders(mset);
捆绑中有一个方法,但它不会从服务器删除邮件。 问候 桑柴塔
How do i delete mails from IMAP Server. I am using chilkat
Chilkat.EmailBundle bundle = imapClient.FetchHeaders(mset);
There is a method in bundle but it does not delete the mail from Server.
Regards
Sanchaita
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Chilkat 网站上有很好的文档(包括代码示例):
单独删除电子邮件(一次删除一个)时间)从 IMAP 邮箱
另外:
从 IMAP 邮箱删除电子邮件
其他 IMAP 示例:
IMAP C# 示例
希望这些有所帮助。
编辑:
按照以下页面上的文档:
Chilkat C# EmailBundle 类参考
RemoveEmail 和RemoveEmailByIndex 方法都仅从捆绑包中删除电子邮件,而不是从服务器中删除电子邮件。您将需要使用上面链接中描述的另一种方法从服务器中删除消息。
编辑
我对 Chilkat 库不是很熟悉,但是从文档来看,EmailBundle 类中的“GetEmail”方法似乎会检索某个索引处的邮件,然后您可以使用“AppendMail” IMap 类中的方法,用于将邮件上传到特定收件箱,如以下示例中指定:
将电子邮件上传(附加)到 IMAP 邮箱
我希望这会有所帮助,如果有帮助,请将其标记为已答复。
There is good documentation (including code examples) on the Chilkat website:
Delete Email Individually (One at a time) from an IMAP Mailbox
Also:
Delete Email from an IMAP Mailbox
Other IMAP examples:
IMAP C# Examples
Hope these help.
Edit:
As per the documentation on the page below:
Chilkat C# EmailBundle Class Reference
Both the RemoveEmail and RemoveEmailByIndex methods only remove the emails from the bundle and not from the server. You will need to use another method as described in the links above to remove the message from the server.
Edit
I am not very familiar with the Chilkat library however from the documentation it seems like the "GetEmail" method in the EmailBundle class will retrieve a mail at a certain index and then you can use the "AppendMail" method in the IMap class to upload the mail to a particular inbox as specified in the following example:
Upload (Append) Email to an IMAP Mailbox
I hope this helps, if it does please mark it as answered.