Changeset 5206 for trunk/expressoMail1_2
- Timestamp:
- 11/24/11 17:55:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5195 r5206 3780 3780 function save_msg($params) 3781 3781 { 3782 3783 ob_start(); 3784 print_r( $params); 3785 3786 $output = ob_get_clean(); 3787 file_put_contents( "/tmp/acoutinho.log", $output , FILE_APPEND); 3788 3782 3789 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php'; 3783 3790 $mailService = ServiceLocator::getService('mail'); … … 3806 3813 } 3807 3814 3808 $folder = mb_convert_encoding($params['folder'], "UTF7-IMAP","ISO _8859-1");3815 $folder = mb_convert_encoding($params['folder'], "UTF7-IMAP","ISO-8859-1, UTF-8"); 3809 3816 $folder = @eregi_replace("INBOX[/.]", "INBOX".$this->imap_delimiter, $folder); 3810 3817 … … 3889 3896 3890 3897 //Build Uploading Attachments!!! 3891 $sizeof_attachments = count($attachments); 3898 $sizeof_attachments = count($attachments); 3892 3899 if ($sizeof_attachments) 3893 3900 foreach ($attachments as $numb => $attach) … … 3924 3931 if (array_key_exists("name", $_attachment)) 3925 3932 { 3926 $returnFiles[$ii]['name'] = base64_encode( $_attachment['name']);3933 $returnFiles[$ii]['name'] = base64_encode(mb_convert_encoding( $_attachment['name'], 'UTF-8', 'UTF-8, ISO-8859-1') ); 3927 3934 $returnFiles[$ii]['size'] = $_attachment['size']; 3928 3935 $ii++; … … 3930 3937 else if($_attachment[2]) 3931 3938 { 3932 $returnFiles[$ii]['name'] = base64_encode( $_attachment[2]);3939 $returnFiles[$ii]['name'] = base64_encode(mb_convert_encoding( $_attachment[2], 'UTF-8', 'UTF-8, ISO-8859-1')); 3933 3940 $returnFiles[$ii]['size'] = $_attachment[5]; 3934 3941 $ii++; … … 3939 3946 $return["subject"] = $params['input_subject']; 3940 3947 if (!$return['append']) $return['append'] = imap_last_error(); 3948 3949 3950 ob_start(); 3951 print_r( $returnFiles); 3952 print_r( $return); 3953 3954 3955 3956 $output = ob_get_clean(); 3957 file_put_contents( "/tmp/acoutinho.log", $output , FILE_APPEND); 3958 3941 3959 return $return; 3942 3960 }
Note: See TracChangeset
for help on using the changeset viewer.