- Timestamp:
- 09/18/12 14:38:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/expressoMail1_2/inc/class.imap_functions.inc.php
r7228 r7236 171 171 return $return; 172 172 } 173 174 function getMessagesIds($params){ 175 $folder = $params['folder']; 176 $sort_box_type = $params['sort_box_type']; 177 $search_box_type = $params['search_box_type']; 178 $sort_box_reverse = $params['sort_box_reverse']; 179 if( !$this->mbox || !is_resource( $this->mbox ) ) 180 $this->mbox = $this->open_mbox($folder); 181 $sort = array(); 182 if ($sort_box_type != "SORTFROM" && $search_box_type!= "FLAGGED"){ 183 $imapsort = imap_sort($this->mbox,constant($sort_box_type),$sort_box_reverse,SE_UID,$search_box_type); 184 foreach($imapsort as $iuid){ 185 $sort[$iuid] = $iuid; 186 } 187 } 188 if(empty($sort) or !is_array($sort)){ 189 $sort = array(); 190 } 191 return $sort; 192 } 173 193 174 194 function get_range_msgs2($params)
Note: See TracChangeset
for help on using the changeset viewer.