Changeset 1518 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 10/20/09 15:24:08 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r1489 r1518 13 13 'get_info_msgs' => True, 14 14 'get_folders_list' => True, 15 'import_msgs' => True 15 'import_msgs' => True, 16 'msgs_to_archive' => True 16 17 ); 17 18 … … 364 365 return $return; 365 366 367 } 368 369 function msgs_to_archive($params) { 370 371 $folder = $params['folder']; 372 $all_ids = $this-> get_msgs($folder, 'SORTSIZE', false, 0,-1,-1); 373 374 $messages_not_to_copy = explode(",",$params['mails']); 375 $ids = array(); 376 377 foreach($all_ids as $each_id=>$value) { 378 if(!in_array($each_id,$messages_not_to_copy)) 379 array_push($ids,$each_id); 380 } 381 382 if (empty($ids)) 383 return array(); 384 385 $params = array("folder"=>$folder,"msgs_number"=>implode(",",$ids)); 386 387 388 return $this->get_info_msgs($params); 389 390 366 391 } 367 392 … … 2047 2072 foreach($imapsort as $iuid) 2048 2073 $sort[$iuid] = ""; 2049 $slice_array = true; 2074 2075 if ($offsetBegin == -1 && $offsetEnd ==-1 ) 2076 $slice_array = false; 2077 else 2078 $slice_array = true; 2050 2079 } 2051 2080 else
Note: See TracChangeset
for help on using the changeset viewer.