{
return is_int(strpos($from, $this->get_barefrom($user, $server)));
}
function get_barefrom($user, $server)
{
$barefrom = "$user@$real_server";
return $barefrom;
}
function get_structure($msg_num)
{
$structure=imap_fetchstructure($this->instream,$msg_num);
//echo gettype($structure);
return $structure;
}
function proc_structure($msg_part, $part_no, $msg_num)
{
if ($msg_part->ifdisposition)
{
// see if it has a disposition, the only thing i know of that this, would be used for would be an attachment
// lets check anyway
if ($msg_part->disposition == "attachment")
{
$att_name = "unknown";
for ($lcv = 0; $lcv < count($msg_part->parameters); $lcv++)
{
$param = $msg_part->parameters[$lcv];
if ($param->attribute == "name")
{
$att_name
| 对此文章发表了评论 |
