[PHP-WIN] PHP and imap_functions() From: Robert J Sherman (webmaster <email protected>)
Date: 06/29/00

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 <email protected>

"Be not so quick to judge. Not everything is, understanding. Not all at
once, is it revealed..."
         Yoda -- Episode I: The Phantom Menace 1999

SnR Graphics
http://www.snr-graphics.com/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe <email protected>
For additional commands, e-mail: php-windows-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>