sirsid Posted 10 hours ago Share Posted 10 hours ago 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 Quote Link to comment https://forums.phpfreaks.com/topic/330083-imap-mark-as-read/ Share on other sites More sharing options...
Solution sirsid Posted 7 hours ago Author Solution Share Posted 7 hours ago Hello, I found it :~) :~) PHP had a Hidden function :~/ = imap_clearflag_full() That Works :~) Marks as READ :~) BRILL :~) Ta Sid Quote Link to comment https://forums.phpfreaks.com/topic/330083-imap-mark-as-read/#findComment-1657881 Share on other sites More sharing options...
sirsid Posted 6 hours ago Author Share Posted 6 hours ago 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); Quote Link to comment https://forums.phpfreaks.com/topic/330083-imap-mark-as-read/#findComment-1657883 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.