PHP and imap_functions()
| From: | Robert J Sherman | Date: | Thu, 29 Jun 2000 11:34:50 +0000 |
| Subject: | PHP and imap_functions() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-739@lists.php.net to get a copy of this message | ||
Hi,
I've been working very extensively with the imap functions of
PHP4. And I wanted to poll this group, for anyone who knows anything
about POP servers.
When I use (imap_setflag_full($mbox, $msgnum, "\\Seen"))
Things appear to function properly, the server doesn't give off
any errors, and PHP doesn't give any errors..
when followed with:
imap_header($mbox, $msgnum);
echo $header->Recent;
It gives back the appropriate (R) flag indicating the message is
marked as seen.
HOWEVER, when I then go back and "list" all the messages in the mailbox,
every message returns with an "N" flag. (Recent and Not Seen).
Can someone tell me, am I doing something wrong? OR is it because
I'm interfacing with a POP server, and it just doesn't actually set the flag?
I've even tried "clearing" the flags on the message, before setting a new flag.
I would greatly appreciate feedback on this? I'm hoping to have the script
I'm writing, to set the seen flag on a message, when the user views the
message.... Granted, it's not that important... but it's just something I'd like
to get worked out.
Kind Regards
Robert J Sherman
827 W 13th St
Joplin, MO 64804
417.626.7759 ph
877.626.9876 toll free (US and Canada)
webmaster@snr-graphics.com
"Be not so quick to judge. Not everything is, understanding. Not all at once, is it revealed..."
Yoda -- Episode I: The Phantom Menace 1999SnR Graphics http://www.snr-graphics.com/