Changeset 7228 for branches/2.4/prototype/services/ImapServiceAdapter.php
- Timestamp:
- 09/17/12 14:30:47 (12 years ago)
- Location:
- branches/2.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4
- Property svn:mergeinfo changed
-
branches/2.4/prototype/services/ImapServiceAdapter.php
r7072 r7228 78 78 foreach ($result as $res) { 79 79 80 $response[] = array( 80 //monta o array padrao 81 $array = array( 81 82 'id' => mb_convert_encoding( $res['folder_id'], 'UTF-8', 'UTF7-IMAP' ), 82 83 'commonName' => mb_convert_encoding( $res['folder_name'], 'UTF-8' , 'UTF7-IMAP' ), 83 84 'parentFolder' => mb_convert_encoding( $res['folder_parent'], 'UTF-8' , 'UTF7-IMAP' ), 84 85 'messageCount' => array('unseen' => isset($res['folder_unseen']) ? $res['folder_unseen'] : null, 'total' => null) 85 ); 86 } 87 86 ); 87 88 //se existir compartilhamento para pasta compartilhada 89 //adicionar array de permissoes 90 if(isset($res['acl_share'])){ 91 $array['acl_share'] = $res['acl_share']; 92 } 93 $response[] = $array; 94 } 88 95 return $response; 89 96 } … … 603 610 */ 604 611 $mailService->addHeaderField('Message-Id', UUID::generate( UUID::UUID_RANDOM, UUID::FMT_STRING ) . '@Draft'); 605 612 $mailService->addHeaderField('Reply-To', mb_convert_encoding(($data['input_reply_to']), 'ISO-8859-1', 'UTF-8,ISO-8859-1')); 606 613 $mailService->addTo(mb_convert_encoding(($data['input_to']), 'ISO-8859-1', 'UTF-8,ISO-8859-1')); 607 614 $mailService->addCc( mb_convert_encoding(($data['input_cc']), 'ISO-8859-1', 'UTF-8,ISO-8859-1')); … … 626 633 $attachment = json_decode($data['attachments'],TRUE); 627 634 628 635 if(!empty($attachment)) 629 636 foreach ($attachment as &$value) 630 637 {
Note: See TracChangeset
for help on using the changeset viewer.