Ignore:
Timestamp:
06/13/12 16:56:03 (12 years ago)
Author:
brunocosta
Message:

Ticket #2853 - Exibição de cotas de sub pastas IMAP.

File:
1 edited

Legend:

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

    r6474 r6482  
    10921092                                                                }  
    10931093 
    1094                                                                 $body = $this->decodeBody(  
     1094                                                                /*$body = $this->decodeBody(  
    10951095                                                                        imap_fetchbody(  
    10961096                                                                                $this->mbox,  
     
    11011101                                                                        $msg->encoding[ $msg_number ][ $values ],  
    11021102                                                                        $msg->charset[ $msg_number ][ $values ]  
    1103                                                                 );  
     1103                                                                ); */ 
     1104                                                                 
     1105                                                               $body = $this->decodeBody(  
     1106                                                                        imap_fetchbody(  
     1107                                                                                $this->mbox,  
     1108                                                                                $msg_number,  
     1109                                                                                $attachment['part_in_msg'] . ".1",  
     1110                                                                                FT_UID  
     1111                                                                        ),  
     1112                                                                        $msg->encoding[ $msg_number ][ $values ],  
     1113                                                                        $msg->charset[ $msg_number ][ $values ]  
     1114                                                                ); 
    11041115 
    11051116                                                                if ( strtolower( $msg->structure[$msg_number]->parts[1]->parts[0]->subtype ) == 'plain' )  
     
    41224133        } 
    41234134 
    4124 //Por Bruno Costa(bruno.vieira-costa@serpro.gov.br - Insere emails no imap a partir do fonte do mesmo. Se o argumento timestamp for passado ele utiliza do script python 
    4125 ///expressoMail1_2/imap.py para inserir uma msg com o horário correto pois isso não é porssível com a função imap_append do php. 
    4126  
    41274135    function insert_email($source,$folder,$timestamp,$flags){ 
    41284136        $username = $_SESSION['phpgw_info']['expressomail']['user']['userid']; 
     
    41364144            imap_createmailbox($mbox_stream,imap_utf7_encode("{".$imap_server."}".$folder)); 
    41374145        } 
     4146         
     4147        // string date ( string $format [, int $timestamp = time() ] ) 
     4148        // bool imap_append ( resource $imap_stream , string $mailbox , string $message [, string $options = NULL [, string $internal_date = NULL ]] ) 
     4149        // 'd-M-Y H:i:s O' 
     4150         
     4151        $return = array(); 
    41384152        if($timestamp){ 
    41394153            $tempDir = $_SESSION['phpgw_info']['server']['temp_dir']; 
     
    41474161            $return['append'] = imap_append($mbox_stream, "{".$imap_server.":".$imap_port."}".$folder, $source, "\\Seen"); 
    41484162        } 
     4163         
     4164        if (!empty($return['command'])) 
     4165        { 
     4166            list ($result, $msg) = explode(':',$return['command']); 
     4167            if (strtoupper($result) === 'NO') 
     4168            { 
     4169                $return['error'] = $msg; 
     4170                return $return; 
     4171            } 
     4172        } 
     4173         
    41494174        $status = imap_status($mbox_stream, "{".$this->imap_server.":".$this->imap_port."}".$folder, SA_UIDNEXT); 
    41504175 
Note: See TracChangeset for help on using the changeset viewer.