Jump to content

imap mark as READ


Go to solution Solved by sirsid,

Recommended Posts

Hello,

I have been looking at this for 2 days now :~( Can anyone help ? I have a script that gets messages from my imap account and runs through them to get uids :~)

BUT I need to Mark some as READ I have found imap_setflag_full() which uses \\SEEN as a Flag to set read, but I need to set Unread ! google etc says remove \\SEEN to set Unread BUT that does Not work !

Am I doing something wrong ?

Can you suggest ?

Thank-You

Sid

Link to comment
https://forums.phpfreaks.com/topic/330083-imap-mark-as-read/
Share on other sites

Hell,

Considering ... $imap = your connection to your imap server & E-Mail account etc .

//$status = imap_setflag_full($imap , "1", "\SEEN" ); Sets as READ

// $status = imap_clearflag_full($imap , "1", "\Seen" ); // SETS as UN Read

echo gettype($status) . "\n";

echo $status . "\n";

imap_close($imap);

Link to comment
https://forums.phpfreaks.com/topic/330083-imap-mark-as-read/#findComment-1657883
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.