Changeset c2b197a in github
- Timestamp:
- Feb 2, 2008 8:48:56 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 06583c3
- Parents:
- 8d3e2a5
- File:
-
- 1 edited
-
program/lib/imap.inc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/lib/imap.inc
r31ecc4f rc2b197a 1986 1986 } 1987 1987 1988 /** 1989 * Gets the delimiter, for example: 1990 * INBOX.foo -> . 1991 * INBOX/foo -> / 1992 * INBOX\foo -> \ 1993 * 1994 * @return mixed A delimiter (string), or false. 1995 * @param object $conn The current connection. 1996 * @see iil_Connect() 1997 */ 1988 1998 function iil_C_GetHierarchyDelimiter(&$conn) { 1989 1999 if ($conn->delimiter) { … … 1995 2005 1996 2006 //try (LIST "" ""), should return delimiter (RFC2060 Sec 6.3.8) 1997 if (!fputs($fp, "ghd LIST \"\" \"\"\r\n")) {2007 if (!fputs($fp, 'ghd LIST "" ""' . "\r\n")) { 1998 2008 return false; 1999 2009 } … … 2001 2011 do { 2002 2012 $line=iil_ReadLine($fp, 500); 2003 if ($line[0] =="*") {2013 if ($line[0] == '*') { 2004 2014 $line = rtrim($line); 2005 2015 $a=iil_ExplodeQuotedString(' ', $line); 2006 if ($a[0] =="*") {2016 if ($a[0] == '*') { 2007 2017 $delimiter = str_replace('"', '', $a[count($a)-2]); 2008 2018 } … … 2019 2029 do { 2020 2030 $line = iil_ReadLine($conn->fp, 1024); 2021 if (iil_StartsWith($line, "* NAMESPACE")) {2031 if (iil_StartsWith($line, '* NAMESPACE')) { 2022 2032 $i = 0; 2023 2033 $data = iil_ParseNamespace2(substr($line,11), $i, 0, 0); 2024 2034 } 2025 } while (!iil_StartsWith($line, "ns1"));2035 } while (!iil_StartsWith($line, 'ns1')); 2026 2036 2027 2037 if (!is_array($data)) {
Note: See TracChangeset
for help on using the changeset viewer.
