Changeset 2066 in subversion
- Timestamp:
- Nov 19, 2008 9:33:35 AM (5 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/imap.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r2060 r2066 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2008/11/19 (alec) 5 ---------- 6 - Fix handling of some malformed messages (#1484438) 3 7 4 8 2008/11/15 (alec) -
trunk/roundcubemail/program/lib/imap.inc
r2055 r2066 71 71 - added BYE response simple support for endless loop prevention 72 72 - added 3rd argument in iil_StartsWith* functions 73 - fix iil_C_FetchPartHeader() in some cases by use of iil_C_HandlePartBody() 73 74 74 75 ********************************************************/ … … 2369 2370 2370 2371 function iil_C_FetchPartHeader(&$conn, $mailbox, $id, $part) { 2371 $fp = $conn->fp; 2372 $result = false; 2373 if (($part == 0) || (empty($part))) { 2372 2373 if (empty($part)) { 2374 2374 $part = 'HEADER'; 2375 2375 } else { … … 2377 2377 } 2378 2378 2379 if (iil_C_Select($conn, $mailbox)) { 2380 $key = 'fh' . ($c++); 2381 $request = $key . " FETCH $id (BODY.PEEK[$part])"; 2382 if (!iil_PutLine($fp, $request)) return false; 2383 do { 2384 $line = chop(iil_ReadLine($fp, 200)); 2385 $a = explode(' ', $line); 2386 if (($line[0] == '*') && ($a[2] == 'FETCH') 2387 && ($line[strlen($line)-1] != ')')) { 2388 $line=iil_ReadLine($fp, 300); 2389 while (trim($line) != ')') { 2390 $result .= $line; 2391 $line=iil_ReadLine($fp, 300); 2392 } 2393 } 2394 } while (strcmp($a[0], $key) != 0 && ($a[0] != '*' || $a[1] != 'BYE')); 2395 } 2396 2397 return $result; 2379 return iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, 1); 2398 2380 } 2399 2381
Note: See TracChangeset
for help on using the changeset viewer.
