Open redfoman opened 1 year ago
note that the below (using php build in functions directly) works as expected:
$imapStream = imap_open("{".$mailBox['hostname'].":".$mailBox['port']."/imap/novalidate-cert}INBOX", $mailBox['username'], $mailBox['password']);
$unseenEmails = imap_search($imapStream, 'UNSEEN');
if ($unseenEmails) {
foreach ($unseenEmails as $emailUid) {
// Mark the email as read (Seen)
imap_setflag_full($imapStream, $emailUid, "\\Seen");
}
}
imap_close($imapStream);
Hi,
I anticipated that the following code would mark the processed messages as 'Seen' (read) in the server mailbox, but it doesn't seem to be doing that. Am I overlooking something? (I am utilizing the legacy IMAP protocol and invoking the expunge method).
Thanks in advance