Ignore:
Timestamp:
09/25/12 08:47:16 (12 years ago)
Author:
eduardow
Message:

Ticket #3126 - Mensagens encaminhadas ficando em branco.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/inc/class.imap_functions.inc.php

    r7284 r7292  
    26842684            } 
    26852685 
     2686            if (substr($params['input_to'], -1) == ',')  
     2687                $params['input_to'] = substr($params['input_to'], 0, -1);  
     2688  
     2689            if (substr($params['input_cc'], -1) == ',')  
     2690                $params['input_cc'] = substr($params['input_cc'], 0, -1);  
     2691  
     2692            if (substr($params['input_cco'], -1) == ',')  
     2693                $params['input_cco'] = substr($params['input_cco'], 0, -1);  
     2694 
    26862695            /*Wraps the text dividing the emails as from ">,"*/ 
    26872696            $toaddress = $db->getAddrs(preg_split('/>,/',preg_replace('/>,/', '>>,', $params['input_to']))); 
     
    27202729            $message_attachments = $params['message_attachments']; 
    27212730 
    2722             if (substr($params['input_to'], -1) == ',') 
    2723                 $params['input_to'] = substr($params['input_to'], 0, -1); 
    2724  
    2725             if (substr($params['input_cc'], -1) == ',') 
    2726                 $params['input_cc'] = substr($params['input_cc'], 0, -1); 
    2727  
    2728             if (substr($params['input_cco'], -1) == ',') 
    2729                 $params['input_cco'] = substr($params['input_cco'], 0, -1); 
    27302731 
    27312732            // Valida numero Maximo de Destinatarios  
     
    28442845            } else { 
    28452846                //Compatibilização com Outlook, ao encaminhar a mensagem 
    2846                 $body = mb_ereg_replace('<!--\[', '<!-- [', $params['body']);                             
     2847                $body = mb_ereg_replace('<!--\[', '<!-- [', base64_decode($params['body']));                             
    28472848                $body = str_replace("&lt;","&yzwkx;",$body); //Alterar as Entities padrão das tags < > para compatibilizar com o Expresso  
    28482849                $body = str_replace("&gt;","&xzwky;",$body); 
     
    30263027 
    30273028            $attachment = json_decode($params['attachments'],TRUE); 
    3028  
    3029             foreach ($attachment as &$value)  
     3029            $message_size_total = 0; 
     3030            foreach ($attachment as &$value) 
    30303031            { 
    30313032                if((int)$value > 0) //BD attachment 
Note: See TracChangeset for help on using the changeset viewer.