From 6b4929278b757f41e0572e2d42982772542e4882 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 8 Oct 2010 09:45:17 +0000 Subject: - 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 --- program/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 9c3252f53..618e07404 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1565,6 +1565,7 @@ function rcube_webmail() 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 }); @@ -1658,7 +1659,10 @@ function rcube_webmail() html = ' '; } else if (c == 'attachment') { - html = flags.attachment ? ' ' : ' '; + if (/application\/|multipart\/m/.test(flags.ctype)) + html = ' '; + else + html = ' '; } else if (c == 'threads') html = expando; -- cgit v1.2.3