perl - POP3 是否区分已读和未读邮件

标签 perl pop3 email-client

我正在使用 Perl 并使用 Net::POP3 ...

我的代码能够获取所有邮件,但是我在文档中找不到任何可以区分已读和未读消息的方法。

IMAP 这样做,所以我想知道这是否同样适用于 POP3?

PS::ping() Net::POP3 中的方法未被列为 Net::POP3 的能力

最佳答案

使用 POP3 无法区分已读或未读。它只能获取和删除消息。如果客户端获取新消息,则客户端将所有尚未被客户端获取的消息(它记住它自己)视为不是新消息。服务器不关心消息的状态。它只是给你它所拥有的所有信息。

来自 Wikipedia :

POP supports simple download-and-delete requirements for access to remote mailboxes (termed maildrop in the POP RFC's).[3] Although most POP clients have an option to leave mail on server after download, e-mail clients using POP generally connect, retrieve all messages, store them on the user's PC as new messages, delete them from the server, and then disconnect. Other protocols, notably IMAP, (Internet Message Access Protocol) provide more complete and complex remote access to typical mailbox operations.

关于perl - POP3 是否区分已读和未读邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13473534/

相关文章:

iphone - 开源 Cocoa/Cocoa-Touch POP3/SMTP 库?

.net - .NET 组件访问电子邮件收件箱的建议

html - 显示/隐藏转发的 html 电子邮件的图像

android - 将编辑文本字段中的文本添加到电子邮件中

xml - 使用 perl XML::LibXML 处理 XML 这么慢

perl dancer - "any"方法 - 调用了哪个实际方法?

regex - 我怎样才能将一系列替换项插入到Perl正则表达式中?

c++ - C++中套接字连接的缓冲区大小

java - 从 Dovecot 邮件服务器删除电子邮件

perl - 在 "plain"perl 中模拟 openssl rc4-40