imap_mailboxmsginfoPodręcznik PHPPoprzedniNastępnyimap_mailboxmsginfo (PHP 3>= 3.0.2, PHP 4 )imap_mailboxmsginfo -- Get information about the current mailboxDescriptionobject imap_mailboxmsginfo ( resource imap_stream)
Returns information about the current mailbox. Returns FALSE on
failure.
The imap_mailboxmsginfo() function checks the
current mailbox status on the server. It is similar to
imap_status(), but will additionally sum up the
size of all messages in the mailbox, which will take some additional
time to execute. It returns the information
in an object with following properties.
Tabela 1. Mailbox propertiesDatedate of last changeDriverdriverMailboxname of the mailboxNmsgsnumber of messagesRecentnumber of recent messagesUnreadnumber of unread messagesDeletednumber of deleted messagesSizemailbox size
Przykład 1. imap_mailboxmsginfo() example<?php
$mbox = imap_open("{your.imap.host}INBOX","username", "password")
or die("can't connect: ".imap_last_error());
$check = imap_mailboxmsginfo($mbox);
if($check) {
print "Date: " . $check->Date ."<br>\n" ;
print "Driver: " . $check->Driver ."<br>\n" ;
print "Mailbox: " . $check->Mailbox ."<br>\n" ;
print "Messages: ". $check->Nmsgs ."<br>\n" ;
print "Recent: " . $check->Recent ."<br>\n" ;
print "Unread: " . $check->Unread ."<br>\n" ;
print "Deleted: " . $check->Deleted ."<br>\n" ;
print "Size: " . $check->Size ."<br>\n" ;
} else {
print "imap_check() failed: ".imap_last_error(). "<br>\n";
}
imap_close($mbox);
?>
PoprzedniSpis treściNastępnyimap_mailPoczątek rozdziałuimap_mime_header_decode
Wyszukiwarka
Podobne podstrony:
function imap mailboxmsginfofunction imap mailboxmsginfofunction imap listscanfunction imap unsubscribefunction imap get quotafunction imap listmailboxfunction imap deletemailboxfunction imap 8bitfunction imap expungefunction imap errorsfunction imap mail copyfunction imap mail composefunction imap utf7 encodefunction imap listfunction imap mailfunction imap fetchheaderwięcej podobnych podstron