diff options
author | alecpl <alec@alec.pl> | 2011-08-22 15:44:07 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-08-22 15:44:07 +0000 |
commit | 7a2bade211d2e8951dda2b88754a564670847b35 (patch) | |
tree | c458ec4503b8ef2039800c9b91c4e534334094a4 /program/steps/mail | |
parent | f0bccb7fb23847b24c8bd598cfb75fc385550211 (diff) |
- Added 'priority' column on messages list
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/func.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index b04628fa4..50de7108d 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -253,7 +253,7 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $a_show_cols=null return; // remove 'threads', 'attachment', 'flag', 'status' columns, we don't need them here - foreach (array('threads', 'attachment', 'flag', 'status') as $col) { + foreach (array('threads', 'attachment', 'flag', 'status', 'priority') as $col) { if (($key = array_search($col, $a_show_cols)) !== FALSE) unset($a_show_cols[$key]); } @@ -309,6 +309,8 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $a_show_cols=null $a_msg_flags['flagged'] = 1; if ($header->others['list-post']) $a_msg_flags['ml'] = 1; + if ($header->priority) + $a_msg_flags['prio'] = (int) $header->priority; $a_msg_flags['ctype'] = Q($header->ctype); $a_msg_flags['mbox'] = $mbox; @@ -372,6 +374,7 @@ function rcmail_message_list_head($attrib, $a_show_cols) $col_name = '<span class="flagged"> </span>'; break; case 'attachment': + case 'priority': case 'status': $col_name = '<span class="' . $col .'"> </span>'; break; |