- Timestamp:
- 09/21/12 16:02:43 (12 years ago)
- Location:
- sandbox/2.4.3-expresso-rest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.3-expresso-rest
- Property svn:mergeinfo changed
/trunk (added) merged: 7253,7257-7259,7264,7267-7269,7271-7272
- Property svn:mergeinfo changed
-
sandbox/2.4.3-expresso-rest/expressoMail1_2/inc/class.imap_functions.inc.php
r7235 r7273 2834 2834 } else { 2835 2835 //Compatibilização com Outlook, ao encaminhar a mensagem 2836 $body = mb_ereg_replace('<!--\[', '<!-- [', $params['body']); 2836 $body = mb_ereg_replace('<!--\[', '<!-- [', $params['body']); 2837 $body = str_replace("<","&yzwkx;",$body); //Alterar as Entities padrão das tags < > para compatibilizar com o Expresso 2838 $body = str_replace(">","&xzwky;",$body); 2837 2839 $body = str_replace("%nbsp;"," ",$body); 2838 2840 //$body = preg_replace("/\n/"," ",$body); 2839 2841 //$body = preg_replace("/\r/","" ,$body); 2840 2842 $body = html_entity_decode ( $body, ENT_QUOTES , 'ISO-8859-1' ); 2843 $body = str_replace("&yzwkx;","<",$body); 2844 $body = str_replace("&xzwky;",">",$body); 2841 2845 } 2842 2846 … … 3641 3645 return $returns; 3642 3646 } 3647 function verify_disposition_notification($msg){ 3648 $header = imap_fetchheader($this->mbox, $msg, FT_UID); 3649 $pattern = '/^[ \t]*Disposition-Notification-To:.*/mi'; 3650 if (preg_match($pattern, $header, $fields)) 3651 return true; 3652 else 3653 return false; 3654 } 3655 3643 3656 function set_messages_flag($params) 3644 3657 { … … 3667 3680 $msgs = explode(",",$msgs_to_set); 3668 3681 foreach($msgs as $men){ 3669 if (imap_setflag_full($this->mbox, $men, "\\Seen", ST_UID)) 3670 $return["msgs_to_set"] .= $men.","; 3671 else 3672 $return["msgs_not_to_set"] .= $men.","; 3682 3683 if($this->verify_disposition_notification($men)){ 3684 3685 if(!array_key_exists('disposition_notification_to', $return)) 3686 $return['disposition_notification_to'] = array(); 3687 3688 $return["disposition_notification_to"][] = $men; 3689 }else{ 3690 if (imap_setflag_full($this->mbox, $men, "\\Seen", ST_UID)) 3691 $return["msgs_to_set"] .= $men.","; 3692 else 3693 $return["msgs_not_to_set"] .= $men.","; 3694 } 3673 3695 } 3674 3696 $return["status"] = true;
Note: See TracChangeset
for help on using the changeset viewer.