$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); $from_address = chop(mb_decode_mimeheader($d->Headers("From"))); $reply_address = chop(mb_decode_mimeheader($d->Headers("Reply-To"))); if (!$reply_address) { $reply_address = $from_address; } $to_address = chop(mb_decode_mimeheader($d->Headers("To"))); $subject = mb_decode_mimeheader($d->Headers("Subject")); $cc = chop($d->Headers("Cc")); $replyto = chop($d->Headers("Reply-To:")); $query = "select account from " . $xoopsDB->prefix('webmail_popsettings') . " where id='{$id}'"; $result = $xoopsDB->query($query, $options[0], 0); $row = $xoopsDB->fetchArray($result); $account = $row[account]; //$content = $d->body; OpenTable(); $msgid_pre = $msgid - 1;