IMAP in Php: Marking a message unread/unseen

16,343

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.

Share:
16,343
Emanuel
Author by

Emanuel

Updated on June 05, 2022

Comments

  • Emanuel
    Emanuel about 2 years

    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.