sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 18b6f8700ce5ea48cb23efca2f507acc74fa615c
parent 7073de5752ed295dc7b325a8e9dde946141ef1e3
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Fri, 26 Feb 2010 23:52:34 -0800

Merge branch 'master' into next

Diffstat:
M lib/sup/modes/thread-index-mode.rb | 10 ++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -793,6 +793,16 @@ protected
       result << [name, new[a]]
     end
 
+    if result.size == 1 && (author_and_newness = result.assoc("me"))
+      unless (recipients = t.participants - t.authors).empty?
+        result = recipients.collect do |r|
+          break if limit && result.size >= limit
+          name = (recipients.size == 1) ? r.mediumname : r.shortname
+          ["(#{name})", author_and_newness[1]]
+        end
+      end
+    end
+
     result
   end