I got a note that:
if u want to set a mail to "//Unseen", which not exists,
do it like this:
but, remember to do
@ the END! so that it will be confirmed!
(PHP 4, PHP 5)
imap_clearflag_full — Clears flags on messages
$options= 0 ] )
This function causes a store to delete the specified
flag to the flags set for the
messages in the specified
An IMAP stream returned by imap_open().
A sequence of message numbers. You can enumerate desired messages with the X,Y syntax, or retrieve all messages within an interval with the X:Y syntax
The flags which you can unset are "\\Seen", "\\Answered", "\\Flagged", "\\Deleted", and "\\Draft" (as defined by » RFC2060)
optionsare a bit mask and may contain the single option:
ST_UID- The sequence argument contains UIDs instead of sequence numbers
TRUE on success or
FALSE on failure.
- imap_setflag_full() - Sets flags on messages
Remember to specify your flags like '\\Seen' rather than "\\Seen".
Of course, flags are an IMAP feature, not a POP feature.
Resetting \\Seen works from PHP 4.3 works fine on the modern mail servers I've tested.
imap_clearflag_full() and imap_setflag_full() seem to only change messageflags permanently with IMAP connections, not with POP3 connections.