Changeset 3692 in subversion
- Timestamp:
- Jun 1, 2010 7:35:35 AM (3 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/steps/mail/func.inc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r3687 r3692 2 2 =========================== 3 3 4 - Add 'messages_list' hook (#1486266) 4 5 - Add request* event triggers in http_post/http_request (#1486054) 5 6 - Fix use RFC-compliant line-delimiter when saving messages on IMAP (#1486712) -
trunk/roundcubemail/program/steps/mail/func.inc
r3688 r3692 228 228 function rcmail_js_message_list($a_headers, $insert_top=FALSE, $head_replace=FALSE) 229 229 { 230 global $CONFIG, $IMAP, $ OUTPUT;230 global $CONFIG, $IMAP, $RCMAIL, $OUTPUT; 231 231 232 232 if (!empty($_SESSION['list_attrib']['columns'])) … … 246 246 if (!in_array('threads', $a_show_cols)) 247 247 array_unshift($a_show_cols, 'threads'); 248 249 // Plugins may set header's list_cols/list_flags and other rcube_mail_header variables 250 // and list columns 251 $plugin = $RCMAIL->plugins->exec_hook('messages_list', 252 array('messages' => $a_headers, 'cols' => $a_show_cols)); 253 254 $a_show_cols = $plugin['cols']; 255 $a_headers = $plugin['messages']; 248 256 249 257 $thead = $head_replace ? rcmail_message_list_head($_SESSION['list_attrib'], $a_show_cols) : NULL; … … 261 269 if (($key = array_search('threads', $a_show_cols)) !== FALSE) 262 270 unset($a_show_cols[$key]); 263 264 271 // loop through message headers 272 265 273 foreach ($a_headers as $n => $header) 266 274 { 275 if (empty($header)) 276 continue; 277 267 278 $a_msg_cols = array(); 268 279 $a_msg_flags = array(); 269 270 if (empty($header))271 continue;272 280 273 281 $IMAP->set_charset(!empty($header->charset) ? $header->charset : $CONFIG['default_charset']); … … 318 326 $a_msg_flags['mbox'] = $mbox; 319 327 328 // merge with plugin result 329 if (!empty($header->list_flags) && is_array($header->list_flags)) 330 $a_msg_flags = array_merge($a_msg_flags, $header->list_flags); 331 if (!empty($header->list_cols) && is_array($header->list_cols)) 332 $a_msg_cols = array_merge($a_msg_cols, $header->list_cols); 333 320 334 $OUTPUT->command('add_message_row', 321 335 $header->uid, … … 325 339 } 326 340 327 if ($IMAP->threading && $a_headers) {341 if ($IMAP->threading) { 328 342 $OUTPUT->command('init_threads', (array) $roots); 329 343 }
Note: See TracChangeset
for help on using the changeset viewer.
