Changeset c2b197a in github


Ignore:
Timestamp:
Feb 2, 2008 8:48:56 AM (5 years ago)
Author:
till <till@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
06583c3
Parents:
8d3e2a5
Message:
  • replaced more " with '
  • some CS
  • added some comments to delimiter 'logic'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/lib/imap.inc

    r31ecc4f rc2b197a  
    19861986} 
    19871987 
     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 */ 
    19881998function iil_C_GetHierarchyDelimiter(&$conn) { 
    19891999        if ($conn->delimiter) { 
     
    19952005         
    19962006        //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")) { 
    19982008            return false; 
    19992009    } 
     
    20012011        do { 
    20022012                $line=iil_ReadLine($fp, 500); 
    2003                 if ($line[0]=="*") { 
     2013                if ($line[0] == '*') { 
    20042014                        $line = rtrim($line); 
    20052015                        $a=iil_ExplodeQuotedString(' ', $line); 
    2006                         if ($a[0]=="*") { 
     2016                        if ($a[0] == '*') { 
    20072017                            $delimiter = str_replace('"', '', $a[count($a)-2]); 
    20082018            } 
     
    20192029        do { 
    20202030                $line = iil_ReadLine($conn->fp, 1024); 
    2021                 if (iil_StartsWith($line, "* NAMESPACE")) { 
     2031                if (iil_StartsWith($line, '* NAMESPACE')) { 
    20222032                        $i = 0; 
    20232033                        $data = iil_ParseNamespace2(substr($line,11), $i, 0, 0); 
    20242034                } 
    2025         } while (!iil_StartsWith($line, "ns1")); 
     2035        } while (!iil_StartsWith($line, 'ns1')); 
    20262036                 
    20272037        if (!is_array($data)) { 
Note: See TracChangeset for help on using the changeset viewer.