Changeset 7a05909 in github


Ignore:
Timestamp:
Dec 11, 2009 4:39:43 PM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
317a7d9
Parents:
2717f9f
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_imap.php

    r9a0f89d r7a05909  
    12821282      for ($i=0, $count=0; $i<count($part); $i++) 
    12831283        if (is_array($part[$i]) && count($part[$i]) > 3) 
    1284           // fetch message headers if message/rfc822 or named part (could contain Content-Location header) 
    1285           if (strtolower($part[$i][0]) == 'message' || 
    1286             (in_array('name', (array)$part[$i][2]) && (empty($part[$i][3]) || $part[$i][3]=='NIL'))) { 
     1284          // fetch message headers if message/rfc822 or named part (could contain Content-Location header) 
     1285          if (!is_array($part[$i][0]) && (strtolower($part[$i][0]) == 'message' || 
     1286            (in_array('name', (array)$part[$i][2]) && (empty($part[$i][3]) || $part[$i][3]=='NIL')))) { 
    12871287            $part_headers[] = $struct->mime_id ? $struct->mime_id.'.'.($i+1) : $i+1; 
    12881288            } 
    12891289 
    12901290      // pre-fetch headers of all parts (in one command for better performance) 
     1291      // @TODO: we could do this before _structure_part() call, to fetch 
     1292      // headers for parts on all levels 
    12911293      if ($part_headers) 
    12921294        $part_headers = iil_C_FetchMIMEHeaders($this->conn, $this->mailbox, $this->_msg_id, $part_headers); 
     
    13011303      return $struct; 
    13021304      } 
    1303      
    1304      
     1305 
     1306 
    13051307    // regular part 
    13061308    $struct->ctype_primary = strtolower($part[0]); 
Note: See TracChangeset for help on using the changeset viewer.