- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
function mail_mime_to_array($imap,$mid,$parse_headers=false)
{
$mail = imap_fetchstructure($imap,$mid);
// ИМЕННО ПОЧИНИЛ
if(!isset($mail->parts)) {
$mail->parts = array();
$mail->parts[0]['type'] = $mail->type;
$mail->parts[0]['encoding'] = $mail->encoding;
$mail->parts[0]['ifsubtype'] = $mail->ifsubtype;
$mail->parts[0]['subtype'] = $mail->subtype;
$mail->parts[0]['ifdescription'] = $mail->ifdescription;
$mail->parts[0]['ifid'] = $mail->ifid;
$mail->parts[0]['bytes'] = $mail->bytes;
$mail->parts[0]['ifdisposition'] = $mail->ifdisposition;
$mail->parts[0]['disposition'] = $mail->disposition;
$mail->parts[0]['ifdparameters'] =$mail->ifdparameters;
$mail->parts[0]['dparameters'] =$mail->dparameters;
$mail->parts[0]['ifparameters'] =$mail->ifparameters;
$mail->parts[0]['parameters'] =$mail->parameters;
}
$mail = mail_get_parts($imap,$mid,$mail,0);
// ИМЕННО ПОЧИНИЛ
if(!isset($mail->parts)) {
$mail[1]['data'] = imap_base64($mail[1]['data']);
}
if ($parse_headers) $mail[0]["parsed"]=mail_parse_headers($mail[0]["data"]);
return($mail);
}
bormand 01.10.2012 07:19 # +1
sayidandrtfm 01.10.2012 09:03 # 0
Айфно
nepster 01.10.2012 15:24 # 0
на выходе от IOS:
nepster 01.10.2012 15:27 # 0
sayidandrtfm 01.10.2012 09:03 # 0
Апгрейд или ремонт? Все захреначим...синей изолентой(c)