Changeset 0bc59eeb in github
- Timestamp:
- Jun 4, 2010 7:05:59 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- dbe49889
- Parents:
- ccf250e
- File:
-
- 1 edited
-
program/include/rcube_imap_generic.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap_generic.php
rccf250e r0bc59eeb 1507 1507 $node = array(); 1508 1508 if ($str[$begin] != '(') { 1509 $stop = $begin + strspn($str, "1234567890", $begin, $end - $begin);1509 $stop = $begin + strspn($str, '1234567890', $begin, $end - $begin); 1510 1510 $msg = substr($str, $begin, $stop - $begin); 1511 1511 if ($msg == 0) … … 1567 1567 $algorithm = $algorithm ? trim($algorithm) : 'REFERENCES'; 1568 1568 $criteria = $criteria ? 'ALL '.trim($criteria) : 'ALL'; 1569 $data = ''; 1569 1570 1570 1571 if (!$this->putLineC("thrd1 THREAD $algorithm $encoding $criteria")) { … … 1572 1573 } 1573 1574 do { 1574 $line = trim($this->readLine(10000)); 1575 if (preg_match('/^\* THREAD/', $line)) { 1576 $str = trim(substr($line, 8)); 1577 $depthmap = array(); 1578 $haschildren = array(); 1579 $tree = $this->parseThread($str, 0, strlen($str), null, null, 0, $depthmap, $haschildren); 1575 $line = trim($this->readLine()); 1576 if ($this->startsWith($line, '* THREAD')) { 1577 $data .= substr($line, 9); 1578 } else if (preg_match('/^[0-9() ]+$/', $line)) { 1579 $data .= $line; 1580 1580 } 1581 1581 } while (!$this->startsWith($line, 'thrd1', true, true)); … … 1583 1583 $result_code = $this->parseResult($line); 1584 1584 if ($result_code == 0) { 1585 return array($tree, $depthmap, $haschildren); 1585 $depthmap = array(); 1586 $haschildren = array(); 1587 $tree = $this->parseThread($data, 0, strlen($data), null, null, 0, $depthmap, $haschildren); 1588 return array($tree, $depthmap, $haschildren); 1586 1589 } 1587 1590
Note: See TracChangeset
for help on using the changeset viewer.
