- Added 'priority' column on messages list
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Added 'priority' column on messages list |
| | | - Fix image type check for contact photo uploads |
| | | |
| | | RELEASE 0.6-beta |
| | |
| | | $rcmail_config['message_sort_order'] = 'DESC'; |
| | | |
| | | // These cols are shown in the message list. Available cols are: |
| | | // subject, from, to, cc, replyto, date, size, status, flag, attachment |
| | | // subject, from, to, cc, replyto, date, size, status, flag, attachment, 'priority' |
| | | $rcmail_config['list_cols'] = array('subject', 'status', 'from', 'date', 'size', 'flag', 'attachment'); |
| | | |
| | | // the default locale setting (leave empty for auto-detection) |
| | |
| | | 'MESSAGE-ID', |
| | | 'CONTENT-TRANSFER-ENCODING', |
| | | 'REFERENCES', |
| | | 'X-PRIORITY', |
| | | 'X-DRAFT-INFO', |
| | | 'MAIL-FOLLOWUP-TO', |
| | | 'MAIL-REPLY-TO', |
| | |
| | | if ($bodystr) |
| | | $request .= "BODYSTRUCTURE "; |
| | | $request .= "BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE "; |
| | | $request .= "CC REPLY-TO LIST-POST DISPOSITION-NOTIFICATION-TO".$add.")])"; |
| | | $request .= "CC REPLY-TO LIST-POST DISPOSITION-NOTIFICATION-TO X-PRIORITY".$add.")])"; |
| | | |
| | | if (!$this->putLine($request)) { |
| | | $this->setError(self::ERROR_COMMAND, "Unable to send command: $request"); |
| | |
| | | html = expando; |
| | | else if (c == 'subject') |
| | | html = tree + cols[c]; |
| | | else if (c == 'priority') { |
| | | if (flags.prio > 0 && flags.prio < 6) |
| | | html = '<span class="prio'+flags.prio+'"> </span>'; |
| | | else |
| | | html = ' '; |
| | | } |
| | | else |
| | | html = cols[c]; |
| | | |
| | |
| | | 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]); |
| | | } |
| | |
| | | $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; |
| | |
| | | $col_name = '<span class="flagged"> </span>'; |
| | | break; |
| | | case 'attachment': |
| | | case 'priority': |
| | | case 'status': |
| | | $col_name = '<span class="' . $col .'"> </span>'; |
| | | break; |
| | |
| | | #messagelist tr td.threads div.listmenu, |
| | | #messagelist tr td.attachment span.attachment, |
| | | #messagelist tr td.attachment span.report, |
| | | #messagelist tr td.priority span.priority, |
| | | #messagelist tr td.priority span.prio1, |
| | | #messagelist tr td.priority span.prio2, |
| | | #messagelist tr td.priority span.prio3, |
| | | #messagelist tr td.priority span.prio4, |
| | | #messagelist tr td.priority span.prio5, |
| | | #messagelist tr td.flag span.flagged, |
| | | #messagelist tr td.flag span.unflagged:hover, |
| | | #messagelist tr td.status span.status, |
| | |
| | | |
| | | #messagelist tr td.flag span, |
| | | #messagelist tr td.status span, |
| | | #messagelist tr td.attachment span |
| | | #messagelist tr td.attachment span, |
| | | #messagelist tr td.priority span |
| | | { |
| | | width: 15px; |
| | | } |
| | |
| | | #messagelist tr td.threads div.listmenu, |
| | | #messagelist tr td.attachment span.attachment, |
| | | #messagelist tr td.attachment span.report, |
| | | #messagelist tr td.priority span.priority, |
| | | #messagelist tr td.priority span.prio1, |
| | | #messagelist tr td.priority span.prio2, |
| | | #messagelist tr td.priority span.prio3, |
| | | #messagelist tr td.priority span.prio4, |
| | | #messagelist tr td.priority span.prio5, |
| | | #messagelist tr td.flag span.flagged, |
| | | #messagelist tr td.flag span.unflagged:hover, |
| | | #messagelist tr td.status span.status, |
| | |
| | | #messagelist tr td.attachment span.report |
| | | { |
| | | background-position: 0 -255px; |
| | | } |
| | | |
| | | #messagelist tr td.priority span.priority |
| | | { |
| | | background-position: 0 -309px; |
| | | } |
| | | |
| | | #messagelist tr td.priority span.prio5 |
| | | { |
| | | background-position: 0 -358px; |
| | | } |
| | | |
| | | #messagelist tr td.priority span.prio4 |
| | | { |
| | | background-position: 0 -340px; |
| | | } |
| | | |
| | | #messagelist tr td.priority span.prio3 |
| | | { |
| | | background-position: 0 -324px; |
| | | } |
| | | |
| | | #messagelist tr td.priority span.prio2 |
| | | { |
| | | background-position: 0 -309px; |
| | | } |
| | | |
| | | #messagelist tr td.priority span.prio1 |
| | | { |
| | | background-position: 0 -290px; |
| | | } |
| | | |
| | | #messagelist tr td.flag span.flagged |
| | |
| | | #messagelist tr td.attachment, |
| | | #messagelist tr td.threads, |
| | | #messagelist tr td.status, |
| | | #messagelist tr td.flag |
| | | #messagelist tr td.flag, |
| | | #messagelist tr td.priority |
| | | { |
| | | width: 17px; |
| | | padding: 0 0 0 2px; |
| | |
| | | <li><input type="checkbox" name="list_col[]" value="status" id="cols_status" /><label for="cols_status"><roundcube:label name="readstatus" /></label></li> |
| | | <li><input type="checkbox" name="list_col[]" value="attachment" id="cols_attachment" /><label for="cols_attachment"><roundcube:label name="attachment" /></label></li> |
| | | <li><input type="checkbox" name="list_col[]" value="flag" id="cols_flag" /><label for="cols_flag"><roundcube:label name="flag" /></label></li> |
| | | <li><input type="checkbox" name="list_col[]" value="priority" id="cols_priority" /><label for="cols_priority"><roundcube:label name="priority" /></label></li> |
| | | </ul> |
| | | </fieldset> |
| | | <roundcube:endif /> |