在 IMAP 文件夹中指定邮件的最佳方式?
我正在开发一个应用程序,该应用程序应该连接到 IMAP 帐户,阅读电子邮件并挑选出由“Mark”发送的电子邮件,然后它应该响应 mark 诸如“知道了,伙计”之类的自动回复,然后明天做同样的事情,唯一的区别是明天它不应该回复同一封电子邮件。 我不知道如何以最好的方式实现这一点,我想过将处理后的 ID 存储在表中,或记录上次检查日期。但我觉得这些都不是最好的CS解决方案。
I am working on an application that is supposed to connect to IMAP account, read through emails and pick out emails sent by lets say "Mark", then it is supposed to respond to mark
with an automatic response such as "Got it mate" and then do the same tomorrow, with the only difference that tomorrow it should not respond to the same email.
I am not sure how to achieve this the best way, I have thought of storing the processed IDs in a table, or record last check date. But I feel these are not the best CS solutions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UID 保证是唯一的。将每一项存储在本地。
The UID is guaranteed to be unique. Store each one locally.