Changeset 451 in subversion


Ignore:
Timestamp:
Jan 7, 2007 9:26:47 PM (6 years ago)
Author:
estadtherr
Message:

fixed display of HTML attachments

Location:
trunk/roundcubemail
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r450 r451  
    22--------------------------- 
    33 
     42007/01/07 (estadtherr) 
     5---------- 
     6- Fixed display of HTML message attachments (closes #1484178) 
     7 
     8 
    492007/01/07 (thomasb) 
    510---------- 
    611- Applied patch for preview caching (closes #1484186) 
    712- Added Thai and Vietnamese localization files 
     13 
    814 
    9152006/12/29 (thomasb) 
  • trunk/roundcubemail/program/include/rcube_imap.inc

    r422 r451  
    11221122   
    11231123  /** 
    1124    * Return a flat array with references to all parts, indexed by part numbmers 
     1124   * Return a flat array with references to all parts, indexed by part numbers 
    11251125   * 
    11261126   * @param object Message body structure 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r446 r451  
    974974               (empty($mail_part->disposition) && ($mail_part->d_parameters['filename'] || $mail_part->ctype_parameters['name']))) 
    975975        { 
    976         // skip apple ressource files 
     976        // skip apple resource forks 
    977977        if ($message_ctype_secondary=='appledouble' && $secondary_type=='applefile') 
    978978          continue; 
     
    996996      } 
    997997 
    998  
    999998    // if this was a related part try to resolve references 
    1000999    if ($message_ctype_secondary=='related' && sizeof($sa_inline_objects)) 
  • trunk/roundcubemail/program/steps/mail/get.inc

    r335 r451  
    8989      { 
    9090      // we have to analyze the whole structure again to find inline objects 
    91       list($MESSAGE['parts']) = rcmail_parse_message($MESSAGE['structure'], 
    92                                                      array('safe' => (bool)$_GET['_safe'], 
    93                                                            'prefer_html' => TRUE, 
    94                                                            'get_url' => $GET_URL.'&_part=%s')); 
    95       $part = &$MESSAGE['parts'][0]; 
     91      list($new_parts, $new_attachments) = 
     92        rcmail_parse_message($MESSAGE['structure'], 
     93                             array('safe' => (bool)$_GET['_safe'], 
     94                                   'prefer_html' => TRUE, 
     95                                   'get_url' => $GET_URL.'&_part=%s')); 
     96 
     97      $all_parts = array_merge($new_parts, $new_attachments); 
     98      for ($partix = 0; $partix < sizeof($all_parts); $partix++) 
     99        if ($all_parts[$partix]->mime_id == $pid) 
     100          $part = &$all_parts[$partix]; 
    96101 
    97102      // get part body if not available 
    98103      if (!$part->body) 
    99         $part->body = $IMAP->get_message_part($MESSAGE['UID'], $part->mime_id, $part);       
     104        $part->body = $IMAP->get_message_part($MESSAGE['UID'], $part->mime_id, $part); 
    100105 
    101106      $OUTPUT = new rcube_html_page(); 
     
    105110      { 
    106111      // turn off output buffering and print part content 
    107       //@ob_end_clean(); 
    108112      $IMAP->get_message_part($MESSAGE['UID'], $part->mime_id, $part->encoding, true); 
    109113      } 
Note: See TracChangeset for help on using the changeset viewer.