sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 27a5f6ed7a0562ba1c5aeb2f79da352dc21770bf
parent e047e53b436eaed1c323c037ad3abcbe7ef67f71
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Sat, 29 Dec 2007 20:28:23 -0800

bugfix: properly choose root messages for threading by subject

Diffstat:
M lib/sup/thread.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb
@@ -58,7 +58,7 @@ class Thread
   ## messages).
   def each fake_root=false
     adj = 0
-    root = @containers.find_all { |c| !Message.subj_is_reply?(c) }.argmin { |c| c.date || 0 }
+    root = @containers.find_all { |c| c.message && !Message.subj_is_reply?(c.message.subj) }.argmin { |c| c.date }
 
     if root
       adj = 1