Changeset 2b5c123 in github
- Timestamp:
- Dec 12, 2008 6:57:20 AM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- cf6bc5d
- Parents:
- f50cc72
- File:
-
- 1 edited
-
program/include/rcube_imap.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.php
r0b5539e r2b5c123 108 108 $IMAP_USE_INTERNAL_DATE = false; 109 109 110 $this->conn = iil_Connect($host, $user, $pass, array('imap' => $auth_type ? $auth_type : 'check')); 110 // set connection options 111 $options['imap'] = $auth_type ? $auth_type : 'check'; 112 113 // Setting root and delimiter before iil_Connect can save time detecting them 114 // using NAMESPACE and LIST 115 if (is_string($imap_root = rcmail::get_instance()->config->get('imap_root'))) 116 $options['rootdir'] = $imap_root; 117 if($imap_delimiter = rcmail::get_instance()->config->get('imap_delimiter')) 118 $options['delimiter'] = $imap_delimiter; 119 120 $this->conn = iil_Connect($host, $user, $pass, $options); 111 121 $this->host = $host; 112 122 $this->user = $user; … … 812 822 if (!isset($this->cache[$key]) && $this->search_string && $mailbox == $this->mailbox) 813 823 { 814 $this->cache[$key] = $a_msg_headers =array();824 $this->cache[$key] = array(); 815 825 816 826 if ($this->get_capability('sort')) … … 833 843 arsort($a_index); 834 844 835 $this->cache[$key] = $a_index;845 $this->cache[$key] = array_keys($a_index); 836 846 } 837 847 } … … 849 859 { 850 860 $a_index = $this->get_message_cache_index($cache_key, TRUE, $this->sort_field, $this->sort_order); 851 return array_values($a_index); 852 } 853 861 return array_keys($a_index); 862 } 854 863 855 864 // fetch complete message index … … 871 880 arsort($a_index); 872 881 873 $this->cache[$key] = $a_index;882 $this->cache[$key] = array_keys($a_index); 874 883 } 875 884
Note: See TracChangeset
for help on using the changeset viewer.
