break;
}
}
$att_name = $this->decode_mime_string($att_name);
$att_path = $this->username."\\".$att_name;
$this->attach[$this->num_of_attach]=$att_name; //登记附件列表
$this->num_of_attach ++; //登记附件数量
/*
$att_path = $this->username."\\".$this->decode_mime_string($att_name);
if ($this->attach=="")
$this->attach = $att_name;
else
$this->attach .= ";".$att_name;
*/
if (!is_dir($this->username))
mkdir($this->username,0700);
$fp=fopen($att_path,"w");
switch ($msg_part->encoding)
{
case 3: // base64
fputs($fp,imap_base64(imap_fetchbody($this->instream,$msg_num,$part_no)));
break;
case 4: // qp
fputs($fp,imap_qprint(imap_fetchbody($this->instream,$msg_num,$part_no)));
break;
default:
fputs($fp,imap_fetchbody($this->instream,$msg_num,$part_no));
break;
| 对此文章发表了评论 |
