加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

perl – POP3是否区分已读和未读消息

发布时间:2020-12-15 23:20:22 所属栏目:大数据 来源:网络整理
导读:我正在使用Perl并使用Net :: POP3 … 我的代码能够获取所有邮件但是我在文档中找不到可以区分已读和未读邮件的任何方法. IMAP这样做,所以我想知道POP3是否同样适用? Net :: POP3中的PS :: ping()方法未列为Net :: POP3的功能 解决方法 使用POP3时,无法区分
我正在使用Perl并使用Net :: POP3 …

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

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

Net :: POP3中的PS :: ping()方法未列为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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读