Changeset 5800


Ignore:
Timestamp:
03/23/12 15:56:58 (12 years ago)
Author:
thiago
Message:

Ticket #2486 - Melhoria no codigo da selecao de sinalizadores e marcadores nas mensagens.

File:
1 edited

Legend:

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

    r5787 r5800  
    196196                                    $return[$i] = $this->get_info_head_msg( $msg_number , $sample );                                     
    197197                                    $i++; 
    198                             } 
    199                                         $i = 0; 
    200                                                         foreach($sort_array_msg as $msg_number => $value){ 
     198                            }  
     199                                                         
     200                                                        foreach($return as $msg_number => $message_content){ 
     201                                                                if(!isset($message_content['msg_number'])) 
     202                                                                        continue; 
     203                                                                         
    201204                                                                        $filter = array('AND', array('=', 'folderName', $folder), array('=','messageNumber', $msg_number)); 
    202205                                                                        $followupflagged = Controller::find( 
     
    210213                                                                                $followupflag = Controller::read( array( 'concept' => 'followupflag', 'id' => $followupflagged[0]['followupflagId'] ));      
    211214                                                                                $followupflagged[0]['followupflag'] = $followupflag; 
    212                                                                                 $return[$i]['followupflagged'] = $followupflagged[0]; 
     215                                                                                $message_content['followupflagged'] = $followupflagged[0]; 
    213216 
    214217                                                                        } 
     
    221224                                                                         
    222225                                                                        if(isset($labeleds) && count($labeleds) > 0 && $labeleds){ 
    223                                                                                 $return[$i]['labels'] = array(); 
    224  
     226                                                                                $message_content['labels'] = array(); 
    225227                                                                                foreach ($labeleds as $e){       
    226228                                                                                        $labels = Controller::read( array( 'concept' => 'label', 'id' =>  $e['labelId']));      
    227                                                                                         $return[$i]['labels'][] = $labels; 
     229                                                                                        $message_content['labels'][] = $labels; 
    228230                                                                                }        
    229231                                                                        } 
    230232                                                        } 
     233 
    231234                    } 
    232                     $return['num_msgs'] =  $num_msgs; 
    233                          
    234                          
    235                                                                  
     235                    $return['num_msgs'] =  $num_msgs;                            
    236236                } else { 
    237237                        $num_msgs = imap_num_msg($this->mbox); 
Note: See TracChangeset for help on using the changeset viewer.