Ignore:
Timestamp:
09/12/08 17:02:14 (16 years ago)
Author:
niltonneto
Message:

http://www.expressolivre.org/dev/ticket/326

Incluir o campo CCo na cópia da mensagem enviada.

File:
1 edited

Legend:

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

    r413 r426  
    326326                        $return['cc'] = ""; 
    327327                }        
    328                  
     328 
     329                ## 
     330                # @AUTHOR Rodrigo Souza dos Santos 
     331                # @DATE 2008/09/12 
     332                # @BRIEF Adding the BCC field. 
     333                ## 
     334                $bcc = $header->bcc; 
     335                $return['bcc'] = ""; 
     336                if (!empty($bcc)) 
     337                { 
     338                        foreach ($bcc as $tmp_bcc) 
     339                        { 
     340                                if (!empty($tmp_bcc->personal)) 
     341                                { 
     342                                        $personal_tmp_bcc = imap_mime_header_decode($tmp_bcc->personal); 
     343                                        $return['bcc'] .= '"' . $personal_tmp_bcc[0]->text . '"'; 
     344                                        $return['bcc'] .= " "; 
     345                                        $return['bcc'] .= "<"; 
     346                                        $return['bcc'] .= $tmp_bcc->mailbox . "@" . $tmp_bcc->host; 
     347                                        $return['bcc'] .= ">"; 
     348                                        $return['bcc'] .= ", "; 
     349                                } 
     350                                else 
     351                                { 
     352                                        $return['bcc'] .= $tmp_bcc->mailbox . "@" . $tmp_bcc->host; 
     353                                        $return['bcc'] .= ", "; 
     354                                } 
     355                        } 
     356                        $return['bcc'] = $this->del_last_two_caracters($return['bcc']); 
     357                } 
     358                else 
     359                { 
     360                        $return['bcc'] = ""; 
     361                }        
     362 
    329363                $reply_to = $header->reply_to; 
    330364                $return['reply_to'] = ""; 
     
    13041338                $fileContent = imap_fetchbody($mbox_stream, $msg_number, $msg_part, FT_UID);             
    13051339                if($encoding == 'base64') 
    1306                         $fileContent = imap_base64($fileContent); 
     1340                        # The function imap_base64 adds a new line 
     1341                        # at ASCII text, with CRLF line terminators. 
     1342                        # So is being exchanged for base64_decode. 
     1343                        # 
     1344                        #$fileContent = imap_base64($fileContent); 
     1345                        $fileContent = base64_decode($fileContent); 
    13071346                else if($encoding == 'quoted-printable') 
    13081347                        $fileContent = quoted_printable_decode($fileContent);                            
     
    19622001                $toaddress = $params['notificationto']; 
    19632002                 
    1964                 $subject = 'Confirmação de leitura: ' . $params['subject']; 
     2003                $subject = 'Confirmaᅵᅵo de leitura: ' . $params['subject']; 
    19652004                $body = 'Sua mensagem: ' . $params['subject'] . '<br>'; 
    19662005                $body .= 'foi lida por: ' . $_SESSION['phpgw_info']['expressomail']['user']['fullname'] . ' &lt;' . $_SESSION['phpgw_info']['expressomail']['user']['email'] . '&gt; em ' . date("d/m/Y H:i"); 
     
    21092148        function remove_accents($string) { 
    21102149                return strtr($string,  
    2111                 "?Ó??ó?Ý?úÁÀÃÂÄÇÉÈÊËÍÌ?ÎÏÑÕÔÓÒÖÚÙ?ÛÜ?áàãâäçéèêëíì?îïñóòõôöúù?ûüýÿ",  
     2150                "?ï¿œ??ï¿œ?ï¿œ?ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ?ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ?ᅵᅵ?ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ?ᅵᅵᅵᅵᅵᅵᅵᅵᅵᅵ?ᅵᅵᅵᅵ",  
    21122151                "SOZsozYYuAAAAACEEEEIIIIINOOOOOUUUUUsaaaaaceeeeiiiiinooooouuuuuyy"); 
    21132152        } 
Note: See TracChangeset for help on using the changeset viewer.