Changeset 7412


Ignore:
Timestamp:
10/11/12 10:32:14 (8 years ago)
Author:
gustavo
Message:

Ticket #3088 - Corrigido o problema da tela de anexar mensagens

Location:
sandbox/2.5.0-expresso1/expressoMail1_2/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.0-expresso1/expressoMail1_2/inc/class.exporteml.inc.php

    r7411 r7412  
    568568                $header         = $this-> getHeader($id_number); 
    569569                $body           = $this-> getBody($id_number); 
     570                 
     571                if(!strpos($header,"Date: ")){ 
     572                        $header = "Date: " . $this->getHeaderInfo($id_number)->Date . "\r\n" .$header ; 
     573                } 
    570574 
    571575                imap_close($this->mbox_stream); 
    572                  
    573                 if(!strpos($header,"Date: ")){ 
    574                         $header = "Date: " . date("d-M-Y H:i:s") . "\r\n" .$header ; 
    575                 } 
    576576 
    577577                $input = $header . "\r\n\r\n" . $body; 
     
    855855                return imap_fetchheader($this->mbox_stream, $msg_number, FT_UID); 
    856856        } 
     857 
     858        function getHeaderInfo($msg_number){                     
     859                $header = imap_headerinfo($this->mbox_stream, imap_msgno($this->mbox_stream, $msg_number), 80, 255); 
     860                return $header; 
     861        } 
    857862         
    858863        function getBody($msg_number){ 
  • sandbox/2.5.0-expresso1/expressoMail1_2/inc/class.imap_functions.inc.php

    r7411 r7412  
    31343134                $mailService->addHeaderField('Disposition-Notification-To', $_SESSION['phpgw_info']['expressomail']['user']['email']); 
    31353135 
    3136  
    3137             $mailService->addHeaderField('Date', date("d-M-Y H:i:s")); 
     3136            $mailService->addHeaderField('Date', date("r")); 
    31383137 
    31393138            if ($folder != 'null') { 
Note: See TracChangeset for help on using the changeset viewer.