示例#1
0
    $server = $row[popserver];
    $port = $row[port];
    $apop = $row[apop];
    $username = $row[uname];
    $rc4 = new rc4crypt();
    $password = $rc4->endecrypt($username, $row[passwd], "de");
} else {
    echo "Error: POP Server not set properly<br />";
    include XOOPS_ROOT_PATH . "/footer.php";
    exit;
}
$ms = $msgid;
set_time_limit(0);
$pop3 = new POP3($server, $username, $password, $port, $apop);
$pop3->Open();
$message = $pop3->GetMessage($ms);
$s = $pop3->Stats();
$mailsum = $s["message"];
$body = $message["body"];
$header = $message["header"];
$full = $message["full"];
$pop3->Close();
//echo $full;
$d = new DecodeMessage();
if (defined('_MD_WEBMAIL_READMAIL_DATEFORMAT')) {
    $d->dateformat = _MD_WEBMAIL_READMAIL_DATEFORMAT;
}
if (defined('_MD_WEBMAIL_WEEKDAYS')) {
    $d->weekdays = explode(',', _MD_WEBMAIL_WEEKDAYS);
}
$d->InitMessage($full);