Changeset 6265 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 05/22/12 14:45:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r6254 r6265 2998 2998 { 2999 2999 $value = json_decode($value, true); 3000 3000 3001 3001 switch ($value['type']) { 3002 3002 case 'imapPart': … … 3014 3014 break; 3015 3015 case 'imapMSG': 3016 $sub = $value['name'] ? $value['name'].'.eml' :'no title.eml';3017 3016 $mbox_stream = $this->open_mbox($value['folder']); 3018 3017 $rawmsg = $this->getRawHeader($value['uid']) . "\r\n\r\n" . $this->getRawBody($value['uid']); 3019 $mailService->addStringAttachment($rawmsg, $sub, 'message/rfc822', '7bit', 'attachment' );3018 $mailService->addStringAttachment($rawmsg, base64_decode($value['name']), 'message/rfc822', '7bit', 'attachment' ); 3020 3019 $message_size_total += mb_strlen($rawmsg); //Adiciona o tamanho do anexo a variavel que controlao tamanho da msg. 3021 3020 unset($rawmsg); … … 3027 3026 } 3028 3027 } 3029 3028 3030 3029 $message_size_total += strlen($params['body']); /* Tamanho do corpo da mensagem. */ 3031 3030
Note: See TracChangeset
for help on using the changeset viewer.