|
@@ -27,15 +27,17 @@
|
|
|
if ($mailbox == $sent_folder) { $italic = "<i>"; $italic_end = "</i>"; }
|
|
|
|
|
|
for ($i=0; $i < count($message_highlight_list); $i++) {
|
|
|
- if ($message_highlight_list[$i]["match_type"] == "to_cc") {
|
|
|
- if (strpos("^^".$msg["TO"], strtolower($message_highlight_list[$i]["value"])) || strpos("^^".$msg["CC"], strtolower($message_highlight_list[$i]["value"]))) {
|
|
|
+ if (trim($message_highlight_list[$i]["value"]) != "") {
|
|
|
+ if ($message_highlight_list[$i]["match_type"] == "to_cc") {
|
|
|
+ if (strpos("^^".$msg["TO"], $message_highlight_list[$i]["value"]) || strpos("^^".$msg["CC"], $message_highlight_list[$i]["value"])) {
|
|
|
+ $hlt_color = $message_highlight_list[$i]["color"];
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ } else if (strpos("^^".$msg[strtoupper($message_highlight_list[$i]["match_type"])],$message_highlight_list[$i]["value"])) {
|
|
|
$hlt_color = $message_highlight_list[$i]["color"];
|
|
|
continue;
|
|
|
- }
|
|
|
- } else if (strpos("^^".strtolower($msg[strtoupper($message_highlight_list[$i]["match_type"])]),$message_highlight_list[$i]["value"])) {
|
|
|
- $hlt_color = $message_highlight_list[$i]["color"];
|
|
|
- continue;
|
|
|
- }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (!$hlt_color)
|