IMAP
imap_8bit imap_alerts imap_append imap_base64 imap_binary imap_body imap_check imap_clearflag_full imap_close imap_createmailbox imap_delete imap_deletemailbox imap_errors imap_expunge imap_fetch_overview imap_fetchbody imap_fetchheader imap_fetchstructure imap_get_quota imap_getmailboxes imap_getsubscribed imap_header imap_headerinfo imap_headers imap_last_error imap_listmailbox imap_listsubscribed imap_mail imap_mail_compose imap_mail_copy imap_mail_move imap_mailboxmsginfo imap_mime_header_decode imap_msgno imap_num_msg imap_num_recent imap_open imap_ping imap_qprint imap_renamemailbox imap_reopen imap_rfc822_parse_adrlist imap_rfc822_parse_headers imap_rfc822_write_address imap_scanmailbox imap_search imap_set_quota imap_setflag_full imap_sort imap_status imap_subscribe imap_uid imap_undelete imap_unsubscribe imap_utf7_decode imap_utf7_encode imap_utf8
Description
object imap_mailboxmsginfo(resource imap_stream )
imap_mailboxmsginfo retourne les informations à propos de la boîte aux lettres courante. imap_mailboxmsginfo retourne FALSE en cas d'échec.
imap_mailboxmsginfo vérifie le statut courant de la boîte aux lettres sur le serveur, et retourne un objet avec les propriétés suivantes :
Propriétés de boîte aux lettres
<?php$mbox = imap_open("{your.imap.host}INBOX","utilisateur", "mot_de_passe") or die("conexion impossible: ".imap_last_error());$check = imap_mailboxmsginfo($mbox);if($check) { print "Date: " . $check->Date ."<br>\n" ; print "Pilote: " . $check->Driver ."<br>\n" ; print "Mailbox: " . $check->Mailbox ."<br>\n" ; print "Messages: ". $check->Nmsgs ."<br>\n" ; print "Récent: " . $check->Recent ."<br>\n" ; print "Non lus: " . $check->Unread ."<br>\n" ; print "Effacés: " . $check->Deleted ."<br>\n" ; print "Taille: " . $check->Size ."<br>\n" ;} else { print "imap_check() a échoué: ".imap_last_error(). "<br>\n";}imap_close($mbox);?>