Ignore:
Timestamp:
12/28/09 15:47:24 (14 years ago)
Author:
rodsouza
Message:

Ticket #852 - Alterado o sulfixo e realizada a adaptação do MIME.

File:
1 edited

Legend:

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

    r1802 r1899  
    239239                $body           = $this-> getBody($id_number); 
    240240                 
    241                 $file = "source_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".txt"; 
     241                $file = "source_".$_SESSION[ 'phpgw_session' ][ 'session_id' ].".eml"; 
    242242                $f = fopen($tempDir.'/'.$file,"w"); 
    243243                fputs($f,$header ."\r\n\r\n". $body); 
     
    271271                                header('Pragma: public'); 
    272272                                header('Expires: 0'); // set expiration time 
    273                                 header('Content-Disposition: attachment; filename=\"fonte_da_mensagem.txt\"');?>"; 
     273                                header('Content-Disposition: attachment; filename=\"fonte_da_mensagem.eml\"');?>"; 
    274274                 
    275275                $this->connectImap(); 
     
    477477                if ($strFileType == ".ndl") 
    478478                        $ContentType = "application/vnd.lotus-notes"; 
     479                if ($strFileType == ".eml") 
     480                        $ContentType = "text/plain"; 
    479481                return $ContentType; 
    480482        } 
Note: See TracChangeset for help on using the changeset viewer.