From a5ef86161185adaeee1ed39831eceab4c072b985 Mon Sep 17 00:00:00 2001 From: ty221 Date: Fri, 2 Jan 2015 23:44:11 +0100 Subject: [PATCH] Fixed issue 28 from eMBee list --- lib/sup/modes/inbox_mode.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/sup/modes/inbox_mode.rb b/lib/sup/modes/inbox_mode.rb index 7638ea883..ae49b6168 100644 --- a/lib/sup/modes/inbox_mode.rb +++ b/lib/sup/modes/inbox_mode.rb @@ -78,7 +78,9 @@ def handle_idle_update sender, idle_since end def status - super + " #{Index.size} messages in index" + starred = Index.num_results_for(:labels => [:starred]) + unread = Index.num_results_for(:labels => [:unread]) + super + " #{Index.size} messages in index (#{starred} starred, #{unread} unread)" end end