Changeset 6b49292 in github


Ignore:
Timestamp:
Oct 8, 2010 5:45:17 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
32c657a
Parents:
f1ad3650
Message:
  • Add message content-type to the message flags in add_message_row(), can be used e.g. to set message row style/icon according to message type
Location:
program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    re947068 r6b49292  
    15661566      selected: this.select_all_mode || this.message_list.in_selection(uid), 
    15671567      ml: flags.ml?1:0, 
     1568      ctype: flags.ctype, 
    15681569      // flags from plugins 
    15691570      flags: flags.extra_flags 
     
    16591660      } 
    16601661      else if (c == 'attachment') { 
    1661         html = flags.attachment ? '<span class="attachment">&nbsp;</span>' : '&nbsp;'; 
     1662        if (/application\/|multipart\/m/.test(flags.ctype)) 
     1663          html = '<span class="attachment">&nbsp;</span>'; 
     1664        else 
     1665          html = '&nbsp;'; 
    16621666      } 
    16631667      else if (c == 'threads') 
  • program/steps/mail/func.inc

    r1716d5e r6b49292  
    319319    if ($header->others['list-post']) 
    320320      $a_msg_flags['ml'] = 1; 
    321     if (preg_match("/(application\/|multipart\/m)/i", $header->ctype)) 
    322       $a_msg_flags['attachment'] = 1; 
     321 
     322    $a_msg_flags['ctype'] = Q($header->ctype); 
    323323    $a_msg_flags['mbox'] = $mbox; 
    324324 
Note: See TracChangeset for help on using the changeset viewer.