无法使用IMAP协议查看已读的电子邮件 [英] cannot see already read emails using IMAP Protocol
本文介绍了无法使用IMAP协议查看已读的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我正在尝试开发一个可以从邮件服务器读取电子邮件的应用程序.我已经用IMAP配置了邮件服务器.我从这里获得了执行此操作的代码,但它只给我未读的电子邮件.可能是因为看到的电子邮件已被邮件服务器删除(可能是).我想要的是访问所有已看到,未看到,已发送邮件,草稿等的电子邮件.
谁能帮我.
感谢您的帮助.
Hello Everyone
I am trying to develope an application that can read emails from mail server. I have configured my Mail server with IMAP. I got code to do so from here but it gives me only unread emails. it might be because of seen emails are delete by mail server(May Be). What i want is to access all emails seen , unseen, sent items, drafts etc.
Can any one help me.
I appreciate your help.
推荐答案
^ ]
不幸的是,仅提供PDF格式,非常棒的教程.
您的问题:
您正在接收未读消息-但不是已收到的消息?在显示消息时,需要在消息上设置Flag.SEEN
.
通常,您会收到相应文件夹的Message
个对象的完整数组.
您可能正在过滤该数组,以查找未设置 的标志"Flag.SEEN
".
Fundamentals of the JavaMail API[^]
unfortunately only available as PDF, pretty great tutorial.
Your Problem:
You are receiving unread messages - but not the ones that have already been seen? That would need you to set theFlag.SEEN
on the messages when you display them.
Normally one receives a complete Array ofMessage
objects of the corresponding folder.
You''re probably filtering that Array for a the flag "Flag.SEEN
" to be not set.
这篇关于无法使用IMAP协议查看已读的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文