Changeset 90180ef in github
- Timestamp:
- Feb 11, 2008 7:03:43 PM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- ddc34f9
- Parents:
- 6f99263
- File:
-
- 1 edited
-
program/lib/imap.inc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/lib/imap.inc
r5bc0ab1 r90180ef 1521 1521 $request .= "(DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC "; 1522 1522 $request .= "CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID "; 1523 $request .= "REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY)])\r\n";1523 $request .= "REFERENCES RECEIVED DISPOSITION-NOTIFICATION-TO X-PRIORITY)])\r\n"; 1524 1524 1525 1525 if (!fputs($fp, $request)) { … … 1548 1548 if (ord($line[0])<=32) { 1549 1549 $lines[$i] .= (empty($lines[$i])?'':"\n").trim(chop($line)); 1550 } else {1550 } else { 1551 1551 $i++; 1552 1552 $lines[$i] = trim(chop($line)); … … 1565 1565 break; 1566 1566 } 1567 } while (trim($line[0]) != ')' && strncmp($line, $key, strlen($key))); // patch from "Maksim Rubis" <siburny@hotmail.com> 1567 // patch from "Maksim Rubis" <siburny@hotmail.com> 1568 } while (trim($line[0]) != ')' && strncmp($line, $key, strlen($key))); 1568 1569 1569 1570 if (strncmp($line, $key, strlen($key))) { … … 1572 1573 if (is_array($headers)) { 1573 1574 reset($headers); 1574 while ( list($k, $bar) = each($headers) ) $headers[$k] = ''; 1575 while (list($k, $bar) = each($headers)) { 1576 $headers[$k] = ''; 1577 } 1575 1578 } 1576 1579 … … 1586 1589 $result[$id]->timestamp = iil_StrToTime($string); 1587 1590 break; 1591 case 'received': 1592 if (!isset($result[$id]->date)) { 1593 $_received = substr(strstr(str_replace("\n", 1594 '', $string), '; '), 2); 1595 1596 $result[$id]->date = str_replace("\n", '', $_received); 1597 $result[$id]->timestamp = iil_StrToTime($_received); 1598 } 1599 break; 1588 1600 case 'from': 1589 1601 $result[$id]->from = $string;
Note: See TracChangeset
for help on using the changeset viewer.
