Changeset 4887 for trunk/expressoMail1_2


Ignore:
Timestamp:
08/02/11 09:50:18 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Mensagem assinada não abre no ExpressoMail?.r4869

File:
1 edited

Legend:

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

    r4843 r4887  
    11991199            switch (strtolower($structure->ctype_primary)) 
    12001200                { 
    1201                 case 'text': 
    1202                         if(strtolower($structure->ctype_secondary) == 'x-pkcs7-mime') 
    1203                         { 
     1201                        if((preg_match("/pkcs7-mime/i", $msg->structure[$msg_number]->subtype) == 1) && (count($return['signature']) == 0 ) ){ 
    12041202                                $return['body']='isCripted'; 
    12051203                                return $return; 
     
    12101208                        $disposition = strtolower($structure->disposition); 
    12111209 
    1212                         if(($msg_subtype == "html" || $msg_subtype == 'plain') && ($disposition != 'attachment')) 
     1210                        if (preg_match("/pkcs7-mime/i", $msg->structure[$msg_number]->subtype) == 1) 
    12131211                        { 
    12141212 
     
    22942292                                if( $allow )  
    22952293                                {  
    2296                                     $this->add_recipients("cco", $ccoaddress, &$mail);  
     2294                $this->add_recipients("cco", $ccoaddress, &$mail); 
    22972295                                } 
    22982296                $mail->AddReplyTo($replytoaddress); 
     
    41794177    } 
    41804178 
    4181     function show_decript($params){ 
     4179    function show_decript($params,$dec=0){ 
    41824180        $source = $params['source']; 
    4183         //error_log("source: $source\nversao: " . PHP_VERSION, 3, '/tmp/teste.log'); 
    4184         $source = str_replace(" ", "+", $source,$i); 
    4185  
    4186         if (version_compare(PHP_VERSION, '5.2.0', '>=')){ 
    4187             if(!$source = base64_decode($source,true)) 
    4188                 return "error ".$source."Espaços ".$i; 
    4189  
    4190         } 
    4191         else { 
    4192             if(!$source = base64_decode($source)) 
    4193                 return "error ".$source."Espaços ".$i; 
     4181        //error_log("source: $source\nversao: " . PHP_VERSION); 
     4182 
     4183        if ($dec == 0) 
     4184        { 
     4185            $source = str_replace(" ", "+", $source,$i); 
     4186            if (version_compare(PHP_VERSION, '5.2.0', '>=')){ 
     4187                if(!$source = base64_decode($source,true)) 
     4188                    return "error ".$source."Espaï¿œos ".$i; 
     4189 
     4190            } 
     4191            else { 
     4192                if(!$source = base64_decode($source)) 
     4193                    return "error ".$source."Espaï¿œos ".$i; 
     4194            } 
     4195 
    41944196        } 
    41954197 
Note: See TracChangeset for help on using the changeset viewer.