Changeset 5316 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 01/06/12 08:52:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5309 r5316 274 274 $to = $header->to; 275 275 $head_array['to'] = array(); 276 if(isset($to[1]) && $to[1]->host == ".SYNTAX-ERROR.") { //E-mails que não possuem o campo "para", vêm com o recipiente preenchido, porém com um recipiente a mais alegando erro de sintaxe.276 if(isset($to[1]) && isset($to[1]->host) && $to[1]->host == ".SYNTAX-ERROR.") { //E-mails que não possuem o campo "para", vêm com o recipiente preenchido, porém com um recipiente a mais alegando erro de sintaxe. 277 277 $head_array['to']['name'] = $head_array['to']['email'] = NULL; 278 278 } … … 935 935 { 936 936 $return = array(); 937 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';937 require_once dirname(__FILE__).'/class.attachment.inc.php'; 938 938 939 939 $atObj = new attachment(); … … 1322 1322 * Requires of librarys 1323 1323 */ 1324 require_once $_SESSION['rootPath'].'/library/mime/mimePart.php';1325 require_once $_SESSION['rootPath'].'/library/mime/mimeDecode.php';1326 require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';1324 require_once dirname(__FILE__).'/../../library/mime/mimePart.php'; 1325 require_once dirname(__FILE__).'/../../library/mime/mimeDecode.php'; 1326 require_once dirname(__FILE__).'/class.attachment.inc.php'; 1327 1327 //include_once("class.message_components.inc.php"); 1328 1328 //--------------------------------------------------------------------// … … 1533 1533 1534 1534 case 'REPLY': 1535 include_once( $_SESSION['rootPath'].'/header.inc.php');1536 include_once( $_SESSION['rootPath'].'/calendar/inc/class.boicalendar.inc.php');1535 include_once(dirname(__FILE__).'/../../header.inc.php'); 1536 include_once(dirname(__FILE__).'/../../calendar/inc/class.boicalendar.inc.php'); 1537 1537 $boicalendar = new boicalendar(); 1538 1538 … … 2064 2064 if (!count($images)) return ''; 2065 2065 2066 foreach ($images as $key => $value) { 2066 foreach ($images as $key => $value) { 2067 2067 $images[$key]['width'] = 160; 2068 2068 $images[$key]['height'] = 120; 2069 $images[$key]['url'] = "inc/get_archive.php?msgFolder=".$msg_folder."&msgNumber=".$msg_number."&indexPart=".$ image['pid']."&image=true";2069 $images[$key]['url'] = "inc/get_archive.php?msgFolder=".$msg_folder."&msgNumber=".$msg_number."&indexPart=".$value['pid']."&image=true"; 2070 2070 } 2071 2071 … … 2570 2570 function send_mail($params) 2571 2571 { 2572 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';2572 require_once dirname(__FILE__) . '/../../API/class.servicelocator.php'; 2573 2573 $mailService = ServiceLocator::getService('mail'); 2574 2574 … … 3299 3299 function get_forwarding_attachment($msg_folder, $msg_number, $msg_part, $encoding) 3300 3300 { 3301 include_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';3301 include_once dirname(__FILE__).'/class.attachment.inc.php'; 3302 3302 $attachment = new attachment(); 3303 3303 $attachment->decodeConf['rfc_822bodies'] = true; //Forçar a não decodificação de mensagens em anexo. … … 3308 3308 function get_forwarding_attachment2($msg_folder, $msg_number, $msg_part, $encoding) 3309 3309 { 3310 include_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php';3310 include_once dirname(__FILE__).'/class.attachment.inc.php'; 3311 3311 $attachment = new attachment(); 3312 3312 $attachment->setStructureFromMail($msg_folder, $msg_number); … … 3663 3663 { 3664 3664 3665 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';3665 require_oncedirname(__FILE__) . '/../../API/class.servicelocator.php'; 3666 3666 $mailService = ServiceLocator::getService('mail'); 3667 3667 … … 4959 4959 fputs($f,base64_encode($source)); 4960 4960 fclose($f); 4961 $command = "python ". $_SESSION['rootPath']."/expressoMail1_2/imap.py \"$imap_server\" \"$imap_port\" \"$username\" \"$password\" \"$timestamp\" \"$folder\" \"$file\"";4961 $command = "python ".dirname(__FILE__)."/../imap.py \"$imap_server\" \"$imap_port\" \"$username\" \"$password\" \"$timestamp\" \"$folder\" \"$file\""; 4962 4962 $return['command']= exec($command); 4963 4963 }else{ … … 5129 5129 "$msg_user</body><br><br><hr>"; 5130 5130 5131 require_once $_SESSION['rootPath'] . '/API/class.servicelocator.php';5131 require_once dirname(__FILE__) . '/../../API/class.servicelocator.php'; 5132 5132 $mailService = ServiceLocator::getService('mail'); 5133 5133 $mailService->addStringAttachment($mail_content, 'report.eml', 'application/text');
Note: See TracChangeset
for help on using the changeset viewer.