Changeset 5111 in subversion


Ignore:
Timestamp:
Aug 22, 2011 11:44:07 AM (21 months ago)
Author:
alec
Message:
  • Added 'priority' column on messages list
Location:
trunk/roundcubemail
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r5110 r5111  
    22=========================== 
    33 
     4- Added 'priority' column on messages list 
    45- Fix image type check for contact photo uploads 
    56 
  • trunk/roundcubemail/config/main.inc.php.dist

    r5072 r5111  
    361361 
    362362// These cols are shown in the message list. Available cols are: 
    363 // subject, from, to, cc, replyto, date, size, status, flag, attachment 
     363// subject, from, to, cc, replyto, date, size, status, flag, attachment, 'priority' 
    364364$rcmail_config['list_cols'] = array('subject', 'status', 'from', 'date', 'size', 'flag', 'attachment'); 
    365365 
  • trunk/roundcubemail/program/include/rcube_imap.php

    r5095 r5111  
    9797        'CONTENT-TRANSFER-ENCODING', 
    9898        'REFERENCES', 
    99         'X-PRIORITY', 
    10099        'X-DRAFT-INFO', 
    101100        'MAIL-FOLLOWUP-TO', 
  • trunk/roundcubemail/program/include/rcube_imap_generic.php

    r5055 r5111  
    15381538            $request .= "BODYSTRUCTURE "; 
    15391539        $request .= "BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE "; 
    1540         $request .= "CC REPLY-TO LIST-POST DISPOSITION-NOTIFICATION-TO".$add.")])"; 
     1540        $request .= "CC REPLY-TO LIST-POST DISPOSITION-NOTIFICATION-TO X-PRIORITY".$add.")])"; 
    15411541 
    15421542        if (!$this->putLine($request)) { 
  • trunk/roundcubemail/program/js/app.js

    r5109 r5111  
    17791779      else if (c == 'subject') 
    17801780        html = tree + cols[c]; 
     1781      else if (c == 'priority') { 
     1782        if (flags.prio > 0 && flags.prio < 6) 
     1783          html = '<span class="prio'+flags.prio+'">&nbsp;</span>'; 
     1784        else 
     1785          html = '&nbsp;'; 
     1786      } 
    17811787      else 
    17821788        html = cols[c]; 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r5068 r5111  
    254254 
    255255  // remove 'threads', 'attachment', 'flag', 'status' columns, we don't need them here 
    256   foreach (array('threads', 'attachment', 'flag', 'status') as $col) { 
     256  foreach (array('threads', 'attachment', 'flag', 'status', 'priority') as $col) { 
    257257    if (($key = array_search($col, $a_show_cols)) !== FALSE) 
    258258      unset($a_show_cols[$key]); 
     
    310310    if ($header->others['list-post']) 
    311311      $a_msg_flags['ml'] = 1; 
     312    if ($header->priority) 
     313      $a_msg_flags['prio'] = (int) $header->priority; 
    312314 
    313315    $a_msg_flags['ctype'] = Q($header->ctype); 
     
    373375        break; 
    374376      case 'attachment': 
     377      case 'priority': 
    375378      case 'status': 
    376379        $col_name = '<span class="' . $col .'">&nbsp;</span>'; 
  • trunk/roundcubemail/skins/default/ie6hacks.css

    r5039 r5111  
    132132#messagelist tr td.attachment span.attachment, 
    133133#messagelist tr td.attachment span.report, 
     134#messagelist tr td.priority span.priority, 
     135#messagelist tr td.priority span.prio1, 
     136#messagelist tr td.priority span.prio2, 
     137#messagelist tr td.priority span.prio3, 
     138#messagelist tr td.priority span.prio4, 
     139#messagelist tr td.priority span.prio5, 
    134140#messagelist tr td.flag span.flagged, 
    135141#messagelist tr td.flag span.unflagged:hover, 
  • trunk/roundcubemail/skins/default/mail.css

    r4958 r5111  
    703703#messagelist tr td.flag span, 
    704704#messagelist tr td.status span, 
    705 #messagelist tr td.attachment span 
     705#messagelist tr td.attachment span, 
     706#messagelist tr td.priority span 
    706707{ 
    707708  width: 15px; 
     
    713714#messagelist tr td.attachment span.attachment, 
    714715#messagelist tr td.attachment span.report, 
     716#messagelist tr td.priority span.priority, 
     717#messagelist tr td.priority span.prio1, 
     718#messagelist tr td.priority span.prio2, 
     719#messagelist tr td.priority span.prio3, 
     720#messagelist tr td.priority span.prio4, 
     721#messagelist tr td.priority span.prio5, 
    715722#messagelist tr td.flag span.flagged, 
    716723#messagelist tr td.flag span.unflagged:hover, 
     
    743750} 
    744751 
     752#messagelist tr td.priority span.priority 
     753{ 
     754  background-position: 0 -309px; 
     755} 
     756 
     757#messagelist tr td.priority span.prio5 
     758{ 
     759  background-position: 0 -358px; 
     760} 
     761 
     762#messagelist tr td.priority span.prio4 
     763{ 
     764  background-position: 0 -340px; 
     765} 
     766 
     767#messagelist tr td.priority span.prio3 
     768{ 
     769  background-position: 0 -324px; 
     770} 
     771 
     772#messagelist tr td.priority span.prio2 
     773{ 
     774  background-position: 0 -309px; 
     775} 
     776 
     777#messagelist tr td.priority span.prio1 
     778{ 
     779  background-position: 0 -290px; 
     780} 
     781 
    745782#messagelist tr td.flag span.flagged 
    746783{ 
     
    838875#messagelist tr td.threads, 
    839876#messagelist tr td.status, 
    840 #messagelist tr td.flag 
     877#messagelist tr td.flag, 
     878#messagelist tr td.priority 
    841879{ 
    842880  width: 17px; 
  • trunk/roundcubemail/skins/default/templates/mail.html

    r4918 r5111  
    167167    <li><input type="checkbox" name="list_col[]" value="attachment" id="cols_attachment" /><label for="cols_attachment"><roundcube:label name="attachment" /></label></li> 
    168168    <li><input type="checkbox" name="list_col[]" value="flag" id="cols_flag" /><label for="cols_flag"><roundcube:label name="flag" /></label></li> 
     169    <li><input type="checkbox" name="list_col[]" value="priority" id="cols_priority" /><label for="cols_priority"><roundcube:label name="priority" /></label></li> 
    169170  </ul> 
    170171</fieldset> 
Note: See TracChangeset for help on using the changeset viewer.