Changeset 03a63a4 in github
- Timestamp:
- Jul 30, 2009 7:56:10 AM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- a80b7d4
- Parents:
- 4bd9c01
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/imap.inc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r659672e r03a63a4 2 2 =========================== 3 3 4 - Fix endless loop in iil_C_Login() with Courier IMAP (#1486010) 4 5 - Fix #messagemenu display on IE (#1486006) 5 6 - Speedup UI by using sprites for (toolbar) buttons -
program/lib/imap.inc
r9db29ee r03a63a4 244 244 do { 245 245 $buffer = fgets($fp, $size); 246 246 247 if ($buffer === false) { 247 248 break; … … 251 252 $line .= $buffer; 252 253 } while ($buffer[strlen($buffer)-1] != "\n"); 253 254 254 255 return $line; 255 256 } … … 291 292 } 292 293 294 // don't use it in loops, until you exactly know what you're doing 293 295 function iil_ReadReply($fp) { 294 296 do { 295 297 $line = trim(iil_ReadLine($fp, 1024)); 296 298 } while ($line[0] == '*'); 297 299 298 300 return $line; 299 301 } … … 443 445 iil_PutLine($conn->fp, 'a001 LOGIN "'.iil_Escape($user).'" "'.iil_Escape($password).'"'); 444 446 445 do { 446 $line = iil_ReadReply($conn->fp); 447 if ($line === false) { 448 break; 449 } 450 } while (!iil_StartsWith($line, 'a001 ', true)); 451 447 $line = iil_ReadReply($conn->fp); 448 452 449 // process result 453 450 $result = iil_ParseResult($line); … … 590 587 $IMAP_USE_INTERNAL_DATE = false; 591 588 } 592 //echo '<!-- conn sort_field: '.$my_prefs['sort_field'].' //-->';593 589 594 590 //check input … … 626 622 stream_set_timeout($conn->fp, 10); 627 623 $line = stream_get_line($conn->fp, 8192, "\r\n"); 624 625 if ($my_prefs['debug_mode'] && $line) 626 write_log('imap', 'S: '. $line); 628 627 629 628 // Connected to wrong port or connection error? … … 636 635 return false; 637 636 } 638 637 639 638 // RFC3501 [7.1] optional CAPABILITY response 640 639 if (preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) { … … 1834 1833 1835 1834 iil_PutLine($fp, "cpy1 UID COPY $messages \"".iil_Escape($to)."\""); 1836 $line =iil_ReadReply($fp);1835 $line = iil_ReadReply($fp); 1837 1836 return iil_ParseResult($line); 1838 1837 } else {
Note: See TracChangeset
for help on using the changeset viewer.
