Looks like message highlighting contains a bug. The color is returned
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 15 Apr 2005 08:44:06 +0000 (08:44 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 15 Apr 2005 08:44:06 +0000 (08:44 +0000)
without the leading # character. This will fix it.

TODO, somebody may want to check why the color is stored without the leading
# char.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9296 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php

index 47e70ba..d892cdc 100644 (file)
@@ -627,6 +627,10 @@ function highlightMessage($sCol, $sVal, $highlight_list, &$aFormat) {
         }
     }
     if ($hlt_color) {
         }
     }
     if ($hlt_color) {
+        // Bug in highlight color??? 
+        if ($hlt_color{0} != '#') {
+            $hlt_color = '#'. $hlt_color;
+        }
         $aFormat['row']['color'] = $hlt_color;
         return true;
     } else {
         $aFormat['row']['color'] = $hlt_color;
         return true;
     } else {