summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/func.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-08 09:45:17 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-08 09:45:17 +0000
commit7cf9475067129efee5bcb4c3f7913f055020804a (patch)
tree573137aca6016261cefce7a8d23b6c74347c283f /roundcubemail/program/steps/mail/func.inc
parentdfa4210f4ce73d82f3023cff1b624b0ab59a41cf (diff)
- 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
git-svn-id: https://svn.roundcube.net/trunk@4063 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
-rw-r--r--roundcubemail/program/steps/mail/func.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index ab2109fc5..1d65390c2 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -318,8 +318,8 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $a_show_cols=null
$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