Changeset 7a05909 in github
- Timestamp:
- Dec 11, 2009 4:39:43 PM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 317a7d9
- Parents:
- 2717f9f
- File:
-
- 1 edited
-
program/include/rcube_imap.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.php
r9a0f89d r7a05909 1282 1282 for ($i=0, $count=0; $i<count($part); $i++) 1283 1283 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')))) { 1287 1287 $part_headers[] = $struct->mime_id ? $struct->mime_id.'.'.($i+1) : $i+1; 1288 1288 } 1289 1289 1290 1290 // 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 1291 1293 if ($part_headers) 1292 1294 $part_headers = iil_C_FetchMIMEHeaders($this->conn, $this->mailbox, $this->_msg_id, $part_headers); … … 1301 1303 return $struct; 1302 1304 } 1303 1304 1305 1306 1305 1307 // regular part 1306 1308 $struct->ctype_primary = strtolower($part[0]);
Note: See TracChangeset
for help on using the changeset viewer.
