Ignore:
Timestamp:
05/10/10 10:52:29 (14 years ago)
Author:
amuller
Message:

Ticket #1059 - Corrigindo problemas de requisições que trazem valores desatualizados

File:
1 edited

Legend:

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

    r2739 r2747  
    117117                $return = array(); 
    118118                $i = 0; 
    119                 $num_msgs = imap_num_msg($this->mbox); 
     119                $status = imap_status($this->mbox, 
     120                        "{".$this->email_server['imapServer'].":".$this->email_server['imapPort'].$this->imap_options."}".$folder, 
     121                        SA_MESSAGES + SA_UNSEEN); 
    120122                if(is_array($sort_array_msg)){ 
    121123                        foreach($sort_array_msg as $msg_number => $value) 
     
    132134                        } 
    133135                } 
    134                 $return['num_msgs'] = $num_msgs; 
     136                $return['num_msgs'] = $status->messages; 
     137                $return['num_unseen'] = $status->unseen; 
    135138 
    136139                return $return; 
     
    23212324        } 
    23222325 
    2323         function messages_sort($sort_box_type,$sort_box_reverse, $search_box_type,$offsetBegin,$offsetEnd) 
     2326        function messages_sort($sort_box_type, $sort_box_reverse, $search_box_type, $offsetBegin, $offsetEnd) 
    23242327        { 
    23252328                if ($sort_box_type != "SORTFROM" && $search_box_type!= "FLAGGED"){ 
Note: See TracChangeset for help on using the changeset viewer.