Ignore:
Timestamp:
07/19/12 12:32:00 (12 years ago)
Author:
marcosw
Message:

Ticket #2973 - Correção de bug que mostra o destinatário incompleto

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r6806 r6817  
    12351235                $return['sender']['name'] = isset($sender[0]->personal) ? $this->decode_string($sender[0]->personal): ''; 
    12361236                $return['sender']['email'] = $this->decode_string($sender[0]->mailbox . "@" . $sender[0]->host); 
    1237                  
     1237 
    12381238                if ($return['sender']['name']) 
    12391239                { 
     
    12561256                                if (!empty($tmp->personal)) 
    12571257                                { 
    1258                                         $personal_tmp = imap_mime_header_decode($tmp->personal); 
    1259                                         $return['toaddress2'] .= '"' . $personal_tmp[0]->text . '"'; 
     1258                                        $personal_tmp = $this->formatMailObject($tmp); 
     1259                                        $return['toaddress2'] .= '"' . $personal_tmp['name'] . '"'; 
    12601260                                        $return['toaddress2'] .= " "; 
    12611261                                        $return['toaddress2'] .= "<"; 
    1262                                         if ($tmp->host != 'unspecified-domain') 
    1263                                                 $return['toaddress2'] .= $tmp->mailbox . "@" . $tmp->host; 
    1264                                         else 
    1265                                                 $return['toaddress2'] .= $tmp->mailbox; 
     1262                                        $return['toaddress2'] .= $personal_tmp['email']; 
    12661263                                        $return['toaddress2'] .= ">"; 
    12671264                                        $return['toaddress2'] .= ", "; 
     
    12911288                                if (!empty($tmp_cc->personal)) 
    12921289                                { 
    1293                                         $personal_tmp_cc = imap_mime_header_decode($tmp_cc->personal); 
    1294                                         $return['cc'] .= '"' . $personal_tmp_cc[0]->text . '"'; 
     1290                                        $personal_tmp_cc = $this->formatMailObject($tmp_cc); 
     1291                                        $return['cc'] .= '"' . $personal_tmp_cc['name']. '"'; 
    12951292                                        $return['cc'] .= " "; 
    12961293                                        $return['cc'] .= "<"; 
    1297                                         if ($tmp_cc->host != 'unspecified-domain') 
    1298                                         $return['cc'] .= $tmp_cc->mailbox . "@" . $tmp_cc->host; 
    1299                                         else 
    1300                                                 $return['cc'] .= $tmp_cc->mailbox; 
    1301                                         //$return['cc'] .= $tmp_cc->mailbox . "@" . $tmp_cc->host; 
     1294                                        $return['cc'] .= $personal_tmp_cc['email']; 
    13021295                                        $return['cc'] .= ">"; 
    13031296                                        $return['cc'] .= ", "; 
     
    13351328                                if (!empty($tmp_bcc->personal)) 
    13361329                                { 
    1337                                         $personal_tmp_bcc = imap_mime_header_decode($tmp_bcc->personal); 
    1338                                         $return['bcc'] .= '"' . $personal_tmp_bcc[0]->text . '"'; 
     1330                                        $personal_tmp_bcc = $this->formatMailObject($tmp_bcc); 
     1331                                        $return['bcc'] .= '"' . $personal_tmp_bcc['name'] . '"'; 
    13391332                                        $return['bcc'] .= " "; 
    13401333                                        $return['bcc'] .= "<"; 
    1341                                         if ($tmp_bcc->host != 'unspecified-domain') 
    1342                                         $return['bcc'] .= $tmp_bcc->mailbox . "@" . $tmp_bcc->host; 
    1343                                         else 
    1344                                                 $return['bcc'] .= $tmp_bcc->mailbox; 
     1334                                        $return['bcc'] .= $personal_tmp_bcc['email']; 
    13451335                                        $return['bcc'] .= ">"; 
    13461336                                        $return['bcc'] .= ", "; 
     
    13711361                                if (!empty($reply_to[0]->personal)) 
    13721362                                { 
    1373                                         $personal_reply_to = imap_mime_header_decode($tmp_reply_to->personal); 
     1363                                        $personal_reply_to = $this->formatMailObject($tmp_reply_to); 
    13741364                                        if(!empty($personal_reply_to[0]->text)) { 
    1375                                                 $return['reply_to'] .= '"' . $personal_reply_to[0]->text . '"'; 
     1365                                                $return['reply_to'] .= '"' . $personal_reply_to['name']. '"'; 
    13761366                                                $return['reply_to'] .= " "; 
    13771367                                                $return['reply_to'] .= "<"; 
    1378                                                 $return['reply_to'] .= $reply_to[0]->mailbox . "@" . $reply_to[0]->host; 
     1368                                                $return['reply_to'] .= $personal_reply_to['email']; 
    13791369                                                $return['reply_to'] .= ">"; 
    13801370                                        } 
Note: See TracChangeset for help on using the changeset viewer.