View file mail/mail/mailinfo.php

File size: 1.07Kb
<?
#####################################################################
#  Copyright (c) 2002 Pau Oliva Fora <[email protected]>               #
#  Licensed under the GNU GPL. For full terms see the file COPYING. #
##################################################################### 
require("config.php");
wmlheader();

$mbox = imap_open ("\{$IMAPSERVER:143}$F", "$U", "$P") or die ("can't connect: " . imap_last_error());

print "<card id=\"mailinfo\" title=\"Mail Inbox Info\">\n<p>\n";

$check = imap_mailboxmsginfo ($mbox);
if($check) {
    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" ;
    print "Date: "    . $check->Date    ."<br/>\n" ;
    print "Driver: "  . $check->Driver  ."<br/>\n" ;
    print "Mailbox: " . $check->Mailbox ."<br/>\n" ;
} else {
    print "imap_check() failed: ".imap_last_error(). "<br>\n";
}

imap_close($mbox);

print "</p>\n";
wmlfooter();

?>