Changeset 5800
- Timestamp:
- 03/23/12 15:56:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5787 r5800 196 196 $return[$i] = $this->get_info_head_msg( $msg_number , $sample ); 197 197 $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 201 204 $filter = array('AND', array('=', 'folderName', $folder), array('=','messageNumber', $msg_number)); 202 205 $followupflagged = Controller::find( … … 210 213 $followupflag = Controller::read( array( 'concept' => 'followupflag', 'id' => $followupflagged[0]['followupflagId'] )); 211 214 $followupflagged[0]['followupflag'] = $followupflag; 212 $ return[$i]['followupflagged'] = $followupflagged[0];215 $message_content['followupflagged'] = $followupflagged[0]; 213 216 214 217 } … … 221 224 222 225 if(isset($labeleds) && count($labeleds) > 0 && $labeleds){ 223 $return[$i]['labels'] = array(); 224 226 $message_content['labels'] = array(); 225 227 foreach ($labeleds as $e){ 226 228 $labels = Controller::read( array( 'concept' => 'label', 'id' => $e['labelId'])); 227 $ return[$i]['labels'][] = $labels;229 $message_content['labels'][] = $labels; 228 230 } 229 231 } 230 232 } 233 231 234 } 232 $return['num_msgs'] = $num_msgs; 233 234 235 235 $return['num_msgs'] = $num_msgs; 236 236 } else { 237 237 $num_msgs = imap_num_msg($this->mbox);
Note: See TracChangeset
for help on using the changeset viewer.