summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-08 09:45:17 +0000
committeralecpl <alec@alec.pl>2010-10-08 09:45:17 +0000
commit6b4929278b757f41e0572e2d42982772542e4882 (patch)
treefe78f2a4bf3a4d9a65299144d68fbed26f9aa434 /program/steps/mail
parentf1ad3650ed880fbd15d0b9930cc621a3b00f0bb2 (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
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index ab2109fc5..1d65390c2 100644
--- a/program/steps/mail/func.inc
+++ b/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