IMAP in Php: Marking a message unread/unseen

前端 未结 1 1342
执笔经年
执笔经年 2021-01-15 16:22

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 f

相关标签:
1条回答
  • 2021-01-15 17:06

    If I understand this page correctly:

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

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

    EDIT AFTER YOUR COMMENTS

    Have you looked at this method?:

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

    You are able to clear the \\Seen flag.

    0 讨论(0)
提交回复
热议问题