diff -ruN roundcubemail-rev282.orig/program/lib/imap.inc roundcubemail-rev282.junk/program/lib/imap.inc --- roundcubemail-rev282.orig/program/lib/imap.inc 2006-07-27 13:35:41.000000000 +0200 +++ roundcubemail-rev282.junk/program/lib/imap.inc 2006-07-27 13:41:56.000000000 +0200 @@ -1231,7 +1231,7 @@ /* FETCH date,from,subject headers */ $key="fh".($c++); - $request=$key." FETCH $message_set (BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID REFERENCE)])\r\n"; + $request=$key." FETCH $message_set (BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID REFERENCE X-SPAM-FLAG)])\r\n"; if (!fputs($fp, $request)) return false; do{ @@ -1280,6 +1280,7 @@ $result[$id]->from = $headers["from"]; $result[$id]->to = str_replace("\n", " ", $headers["to"]); $result[$id]->subject = str_replace("\n", "", $headers["subject"]); + $result[$id]->junk = array_key_exists("x-spam-flag", $headers) ? true : false; $result[$id]->replyto = str_replace("\n", " ", $headers["reply-to"]); $result[$id]->cc = str_replace("\n", " ", $headers["cc"]); $result[$id]->bcc = str_replace("\n", " ", $headers["bcc"]); diff -ruN roundcubemail-rev282.orig/program/steps/mail/func.inc roundcubemail-rev282.junk/program/steps/mail/func.inc --- roundcubemail-rev282.orig/program/steps/mail/func.inc 2006-07-27 13:35:45.000000000 +0200 +++ roundcubemail-rev282.junk/program/steps/mail/func.inc 2006-07-27 13:41:56.000000000 +0200 @@ -422,11 +422,12 @@ // set attachment icon if ($attrib['attachmenticon'] && preg_match("/multipart\/m/i", $header->ctype)) $attach_icon = $attrib['attachmenticon']; - - $out .= sprintf(''."\n", + + $out .= sprintf(''."\n", $header->uid, $header->seen ? '' : ' unread', $header->deleted ? ' deleted' : '', + $header->junk ? ' junk' : '', $zebra_class); $out .= sprintf("%s\n", $message_icon ? sprintf($image_tag, $skin_path, $message_icon, '') : ''); diff -ruN roundcubemail-rev282.orig/skins/default/mail.css roundcubemail-rev282.junk/skins/default/mail.css --- roundcubemail-rev282.orig/skins/default/mail.css 2006-07-27 13:35:47.000000000 +0200 +++ roundcubemail-rev282.junk/skins/default/mail.css 2006-07-27 13:41:56.000000000 +0200 @@ -450,6 +450,12 @@ background-color: #FFFFFF; } +#messagelist tr.junk +{ + /*font-style: oblique;*/ + background-color: #e0ffcc; +} + #messagelist tr.selected td { font-weight: bold;