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 47e70ba881c292f233738638b0e041c0d027fdcb..d892cdca21f000a1185e439bd038c51713404a07 100644 (file)
@@ -627,6 +627,10 @@ function highlightMessage($sCol, $sVal, $highlight_list, &$aFormat) {
         }
     }
     if ($hlt_color) {
+        // Bug in highlight color??? 
+        if ($hlt_color{0} != '#') {
+            $hlt_color = '#'. $hlt_color;
+        }
         $aFormat['row']['color'] = $hlt_color;
         return true;
     } else {