Changeset 5363 in subversion
- Timestamp:
- Oct 24, 2011 2:08:53 PM (19 months ago)
- Location:
- trunk/roundcubemail/program/include
- Files:
-
- 2 edited
-
rcube_imap.php (modified) (2 diffs)
-
rcube_imap_generic.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap.php
r5362 r5363 1963 1963 $headers = $this->get_headers($uid, $mailbox); 1964 1964 1965 // message doesn't exist? 1966 if (empty($headers)) 1967 return null; 1968 1965 1969 // structure might be cached 1966 1970 if (!empty($headers->structure)) … … 2383 2387 } 2384 2388 2385 // TODO: Add caching for message parts 2386 2387 if (!$part) { 2388 $part = 'TEXT'; 2389 } 2390 2391 $body = $this->conn->handlePartBody($this->mailbox, $uid, true, $part, 2392 $o_part->encoding, $print, $fp); 2389 if ($o_part && $o_part->size) { 2390 $body = $this->conn->handlePartBody($this->mailbox, $uid, true, 2391 $part ? $part : 'TEXT', $o_part->encoding, $print, $fp); 2392 } 2393 2393 2394 2394 if ($fp || $print) { -
trunk/roundcubemail/program/include/rcube_imap_generic.php
r5330 r5363 2394 2394 $result = false; 2395 2395 2396 if ($a[2] != 'FETCH') { 2397 } 2396 2398 // handle empty "* X FETCH ()" response 2397 if ($line[$len-1] == ')' && $line[$len-2] != '(') {2399 else if ($line[$len-1] == ')' && $line[$len-2] != '(') { 2398 2400 // one line response, get everything between first and last quotes 2399 2401 if (substr($line, -4, 3) == 'NIL') {
Note: See TracChangeset
for help on using the changeset viewer.
