- 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
| | |
| | | parent_uid: flags.parent_uid?flags.parent_uid:0, |
| | | selected: this.select_all_mode || this.message_list.in_selection(uid), |
| | | ml: flags.ml?1:0, |
| | | ctype: flags.ctype, |
| | | // flags from plugins |
| | | flags: flags.extra_flags |
| | | }); |
| | |
| | | html = '<span id="flagicn'+uid+'" class="'+css_class+'"> </span>'; |
| | | } |
| | | else if (c == 'attachment') { |
| | | html = flags.attachment ? '<span class="attachment"> </span>' : ' '; |
| | | if (/application\/|multipart\/m/.test(flags.ctype)) |
| | | html = '<span class="attachment"> </span>'; |
| | | else |
| | | html = ' '; |
| | | } |
| | | else if (c == 'threads') |
| | | html = expando; |
| | |
| | | $a_msg_flags['flagged'] = 1; |
| | | if ($header->others['list-post']) |
| | | $a_msg_flags['ml'] = 1; |
| | | if (preg_match("/(application\/|multipart\/m)/i", $header->ctype)) |
| | | $a_msg_flags['attachment'] = 1; |
| | | |
| | | $a_msg_flags['ctype'] = Q($header->ctype); |
| | | $a_msg_flags['mbox'] = $mbox; |
| | | |
| | | // merge with plugin result |