{
$header = imap_header($mailbox, $index);
print($header->date. "
\n");
print($header->to. "
\n");
print($header->from. "
\n");
print($header->cc. "
\n");
print($header->replyTo. "
\n");
print($header->subject. "
\n");
print("
\n");
print("
");\n
print(imap_body($mbox,$i));
print("
\n");
}
imap_close($mbox);
?>
string imap_clearflag_full(integer stream, string sequence,
string flag, string options)
The imap_clearflag_full function deletes a flag on a sequence of messages. The
options argument, if supplied, may be set to ST_UID, which signals that the
sequence argument contains UIDs instead of message numbers.
<?
$mailbox = imap_open("{news.server.com/nntp:119}",
"leon", "password");
imap_clearflag_full($mailbox, "12-15", "U", ST_UID);
imap_close($mailbox);
?>
boolean imap_close(integer stream, integer flags)
Use imap_close to close a connection to a mailbox. The stream argument is an integer
returned by imap_open. The optional flags argument may be set to CL_EXPUNGE,
which will cause the mailbox to be expunged before closing.
imap_create
You may use imap_create as an alias for imap_createmailbox.