Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
English Site | German Site 

 Web Hosting

 Virtual Dedicated Servers

 Chequeo de dominio

 Haga su pedido

 Estado del pedido

 Support

 Contáctenos

 Download

 Network

 Network Status

 Webdesign / Templates

 Efectuar pago

 Terms & Conditions

 Imprimir

 Notas Legales

 Declaración de Privacidad
  PHP / imap_mailboxmsginfo
imap_mailboxmsginfo

imap_mailboxmsginfo

(PHP 3>= 3.0.2, PHP 4 )

imap_mailboxmsginfo --  Liefert Informationen über das aktuelle Postfach

Beschreibung

object imap_mailboxmsginfo ( int imap_stream)

Diese Funktion liefert dieselben Informationen wie imap_status() sowie zusätzlich die Größe des Postfachs in Bytes. Diese wird aus der Summe der Größe der einzelnen Nachrichten gebildet, deshalb benötigt diese Funktion mehr Zeit zur Ausführung als imap_status().

Tabelle 1. Felder des Rückgabe-Objekts

Date Datum der letzten Änderung
Driver Driver
MailboxName des Postfachs
Nmsgs Anzahl der Nachrichten
Recent Anzahl neuer Nachrichten
Unread Anzahl ungelesener Nachrichten
Size Größe des Postfachs in Byte

Beispiel 1. imap_mailboxmsginfo() Beispiel

$mbox = imap_open ("{your.imap.host}INBOX", "username", "password")
    || 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 "Size: "     . $check->Size    . "<br>\n";
} else {
    print "imap_check() failed: " . imap_lasterror() . "<br>\n";
}
imap_close ($mbox);


© 1998-2007 Gold Vision Communications All Rights Reserved.