Php中的IMAP:将邮件标记为未读/看不见 [英] IMAP in Php: Marking a message unread/unseen

查看:247
本文介绍了Php中的IMAP:将邮件标记为未读/看不见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在php中创建一个脚本,以从邮件帐户中读取所有邮件.我连接到服务器,可以看到邮件,但是我想将其恢复为看不见,我找不到执行此操作的功能.

I want to create a script in php to read al mail from a mail acount. I connect to the server, I can see the mails but went I want to seet it back to unseen I can't find a function to do this.

推荐答案

如果我正确理解此页面,则:

If I understand this page correctly:

http://www.php.net/manual/zh/function.imap-body.php

您可以使用FT_PEEK选项将邮件保留为未读".

You can use the FT_PEEK option to leave the message as 'unread'.

在评论后进行编辑

您看过这种方法吗?:

http://www.php.net/manual/zh/function.imap-clearflag-full.php

您可以清除\\ Seen标志.

You are able to clear the \\Seen flag.

这篇关于Php中的IMAP:将邮件标记为未读/看不见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆