Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

object imap_mailboxmsginfo(integer stream)


Use imap_mailboxmsginfo to return information about the current mailbox. The
object will have the properties listed in Table 14.7.


<?


$mailbox = imap_open("{mail.server.com}INBOX",
"leon", "password");
$info = imap_mailboxmsginfo($mailbox);
print("Driver: ". $info->Driver);
imap_close($mailbox);
?>


integer imap_msgno(integer stream, integer uid)


The imap_msgno function returns the message number based on a UID. To get the UID
based on message number, use imap_uid.


Table 14.7. Properties for imap_mailboxmsginfo

Date
Driver
Mailbox
Nmsgs
Recent
Size
Unread


integer imap_num_msg(integer stream)


The imap_num_msg function returns the number of messages in the current mailbox.


<?


$mailbox = imap_open("{mail.server.com}INBOX",
"leon", "password");
print("Number of Messages: ".
imap_num_recent($mailbox));
imap_close($mailbox);
?>


integer imap_num_recent(integer stream)

Free download pdf