Changeset 1899


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.

Location:
trunk/expressoMail1_2
Files:
3 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        } 
  • trunk/expressoMail1_2/inc/gotodownload.php

    r1597 r1899  
    152152                if ($strFileType == ".ndl") 
    153153                        $ContentType = "application/vnd.lotus-notes"; 
     154                if ($strFileType == ".eml") 
     155                        $ContentType = "text/plain"; 
    154156 
    155157                header ("Content-Type: $ContentType"); 
  • trunk/expressoMail1_2/js/common_functions.js

    r1657 r1899  
    575575        var num_msg = id_msg.substr(0,(id_msg.length - 2)); 
    576576        var handler_source = function(data){ 
    577                 download_attachments(null, null, data, null,null,'fonte_da_mensagem.txt'); 
     577                download_attachments(null, null, data, null,null,'fonte_da_mensagem.eml'); 
    578578        } 
    579579        cExecute("$this.exporteml.export_msg",handler_source,"folder="+url_decode(folder)+"&msgs_to_export="+num_msg); 
Note: See TracChangeset for help on using the changeset viewer.