crazybeans128
Programmer
I have a project where my PHP script has to open emails and sort through them trying to find some general information. I'm experimenting with the IMAP protocols to do this, as I cannot edit the configuration on ther server. I quickly figured out how to work the protocols, however if I want to look at the same message again using the message number, it shows me a completeley different message and the message I want to see is nowhere to be found, at least, not that I can find. My current code looks like this:
<?php
$mbox = imap_open (information I don't care for you to know);
$message = imap_body($mbox,350,);
echo $message;
imap_clearflag_full($mbox,350,"\\Seen");
imap_close($mbox);
?>
I placed the flag in there in hopes that it would leave the message intact, but it does not. Any ideas?
<?php
$mbox = imap_open (information I don't care for you to know);
$message = imap_body($mbox,350,);
echo $message;
imap_clearflag_full($mbox,350,"\\Seen");
imap_close($mbox);
?>
I placed the flag in there in hopes that it would leave the message intact, but it does not. Any ideas?