$mailbox =
imap_open("{mail.server.com/pop3:110}INBOX", "leon",
"password");
//connect to a NNTP server
$mailbox =
imap_open("{mail.server.com/nntp:119}INBOX", "leon",
"password");
?>
boolean imap_ping(integer stream)
The imap_ping function checks the stream to makes sure it is still alive. If new mail
has arrived, it will be detected when this function is called.
<?
$mailbox = imap_open("{mail.server.com}INBOX",
"leon", "password");
imap_ping($mailbox);
imap_close($mailbox);
?>
integer imap_popen(string mailbox, string username, string
password, integer flags)
The imap_popen function opens a persistent connection to an IMAP server. This
connection is not closed until the calling process ends, so it may be reused by many page
requests. At the time of this writing the code behind this function was unfinished.
string imap_qprint(string text)
The imap_qprint function converts a quote-printable string into an 8-bit string.
<?
$converted = imap_qprint($qstring);
?>
imap_rename