简体   繁体   English

如何使用mailkit / mimekit IMAP下载/保存所有收件箱/已发送的电子邮件?

[英]How to download/save all the inbox/sent emails using mailkit/mimekit IMAP?

I have successfully used MAILKIT/MIMEKIT api for sending/receiving emails. 我已成功使用MAILKIT / MIMEKIT api发送/接收电子邮件。 Now, i am using the IMAP function to download the INBOX and SENT items emails and store them locally? 现在,我正在使用IMAP功能下载INBOX和SENT项目电子邮件并将其存储在本地? What should I use a database ? 我应该使用什么数据库? or how should I proceed ? 或者我应该如何进行?

You can use a database or you can save all of the messages into a Maildir structure, or you could even save all of the messages to a single file like an mbox . 您可以使用数据库,也可以将所有消息保存到Maildir结构中,甚至可以将所有消息保存到单个文件中,例如mbox

How you decide to handle this is completely up to you. 您如何决定如何处理完全取决于您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM