Changeset 1931


Ignore:
Timestamp:
01/12/10 11:22:44 (14 years ago)
Author:
eduardoalex
Message:

Ticket #876 - Resolvendo o problema descrito no ticket em questao

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r1923 r1931  
    376376                 
    377377                $folder = $params['folder']; 
    378                 $all_ids = $this-> get_msgs($folder, 'SORTARRIVAL', false, 0,1,200); 
     378                $all_ids = $this-> get_msgs($folder, 'SORTARRIVAL', false, 0,-1,-1); 
    379379 
    380380                $messages_not_to_copy = explode(",",$params['mails']); 
    381381                $ids = array(); 
    382382                 
     383                $cont = 0; 
     384                 
    383385                foreach($all_ids as $each_id=>$value) { 
    384                         if(!in_array($each_id,$messages_not_to_copy)) 
     386                        if(!in_array($each_id,$messages_not_to_copy)) { 
    385387                                array_push($ids,$each_id); 
     388                                $cont++; 
     389                        } 
     390                        if($cont>=100) 
     391                                break; 
    386392                } 
    387393 
Note: See TracChangeset for help on using the changeset viewer.