Changeset 1711


Ignore:
Timestamp:
11/26/09 14:24:31 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #405 - Corrige problema com anexos extras ao encaminhar e-mail.

Location:
trunk/expressoMail1_2
Files:
3 edited

Legend:

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

    r1709 r1711  
    18591859                        $mail->Body = str_replace($cid_imgs[1][$j], "cid:".$cid, $mail->Body); 
    18601860 
    1861                                 if ($msg_uid != $cid_imgs[4][$j]) // The image isn't in the same mail? 
     1861                                if (!$forwarding_attachments[$cid_imgs[6][$j]-2]) // The image isn't in the same mail? 
    18621862                                { 
    18631863                                        $fileContent = $this->get_forwarding_attachment($cid_imgs[2][$j], $cid_imgs[4][$j], $cid_imgs[6][$j], 'base64'); 
     
    18741874                                                $file_description[$i]  = eregi_replace('\'*\'','',$descriptor); 
    18751875                                        } 
    1876                                         $fileContent = $this->get_forwarding_attachment($file_description[0], $msg_uid, $file_description[3], 'base64'); 
     1876                                        $fileContent = $this->get_forwarding_attachment($file_description[0], $cid_imgs[4][$j], $file_description[3], 'base64'); 
    18771877                                        $fileName = $file_description[2]; 
    18781878                                        $fileCode = $file_description[4]; 
  • trunk/expressoMail1_2/js/draw_api.js

    r1701 r1711  
    17671767                        { 
    17681768                                var showImgLink = document.createElement('DIV'); 
    1769                                 showImgLink.id="show_img_link"; 
     1769                                showImgLink.id="show_img_link_"+ID; 
    17701770                                showImgLink.onclick = function(){show_msg_img(info_msg.msg_number,info_msg.msg_folder)}; 
    17711771                                showImgLink.className="show_img_link"; 
  • trunk/expressoMail1_2/js/main.js

    r1706 r1711  
    902902 
    903903function new_message(type, border_ID){ 
     904        // TODO: Verificar porque este código está falhando 
     905        //if (Element('show_img_link_'+border_ID)) 
     906        //{ 
     907        //    show_msg_img(border_ID.match(/^\d*/)[0], Element('input_folder_'+border_ID).value); 
     908        //} 
    904909        var new_border_ID = draw_new_message(parseInt(border_ID)); 
    905910        if (new_border_ID == false) 
     
    11611166                        document.getElementById("subject_" + new_border_ID).value = "Fw: " + data.subject; 
    11621167                        var divFiles = Element("divFiles_"+new_border_ID); 
    1163                         var campo_arquivo 
     1168                        var campo_arquivo; 
    11641169                        if (Element("attachments_" + border_ID)){ 
    11651170                                var attachments = document.getElementById("attachments_" + border_ID).childNodes; 
Note: See TracChangeset for help on using the changeset viewer.