From 6b4929278b757f41e0572e2d42982772542e4882 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 08 Oct 2010 05:45:17 -0400
Subject: [PATCH] - 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/steps/mail/func.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index ab2109f..1d65390 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -318,8 +318,8 @@
       $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

--
Gitblit v1.9.1