rendered paste body end
end
+ def has_recent?
+ return num_msgs["RECENT"].to_i != 0
+ end
+
def to_s
name.gsub(/[^\.]+\./," ")
end
=== lib/frontend/emaiwindows.rb
==================================================================
--- lib/frontend/emaiwindows.rb (revision 305)
+++ lib/frontend/emaiwindows.rb (local)
@@ -58,11 +58,19 @@
r = Regexp.new('[[:cntrl:]]')
end
str.gsub!(r,'?')
-
- if color == "reverse" || (not Ncurses::has_colors?())
- w.wattron(Ncurses::A_REVERSE)
+
+ attr = 0
+ if color =~ /reverse/
+ attr = Ncurses::A_REVERSE
+ end
+ if color =~ /standout/
+ attr |= Ncurses::A_STANDOUT
+ end
+
+ if attr != 0 || (not Ncurses::has_colors?())
+ w.wattron(attr)
w.mvwprintw(y, x, format, str)
- w.wattroff(Ncurses::A_REVERSE)
+ w.wattroff(attr)
elsif Ncurses::has_colors?() && color != "none"
color_n = @colors[color] || 0
w.wattron(Ncurses::COLOR_PAIR(color_n));
@@ -336,7 +344,11 @@
if z == show_item
mv_print_color(y, x, "%s", itemname, "reverse")
else
- mv_print_color(y, x, "%s", itemname, "none")
+ if item.has_recent?
+ mv_print_color(y, x, "%s", itemname, "standout")
+ else
+ mv_print_color(y, x, "%s", itemname, "none")
+ end
end
x += itemname.length if @y == 0
} if @items[@offset .. @offset + visible]