sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 4c8091314b3ad6005bc33d89793f8ebda145756b
parent 08b167ce3d7a57911b537a079b66b4144a20e3ee
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Sat,  2 Dec 2006 00:31:19 +0000

added debug check for Thread vs ::Thread, and removed extraneous logging


git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@58 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/thread.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb
@@ -7,6 +7,7 @@ class Thread
 
   attr_reader :containers
   def initialize
+    raise "wrong thread, buddy!" if block_given?
     @containers = []
   end
 
@@ -321,7 +322,7 @@ class ThreadSet
       else
         ## to disable subject grouping, use the next line instead
         ## (and the same for below)
-        Redwood::log "[1] normalized subject for #{id} is #{Message.normalize_subj(root.subj)}"
+        #Redwood::log "[1] normalized subject for #{id} is #{Message.normalize_subj(root.subj)}"
         thread = (@subj_thread[Message.normalize_subj(root.subj)] ||= Thread.new)
         #thread = (@subj_thread[root.id] ||= Thread.new)
 
@@ -342,7 +343,7 @@ class ThreadSet
       else
         ## to disable subject grouping, use the next line instead
         ## (and the same above)
-        Redwood::log "[2] normalized subject for #{id} is #{Message.normalize_subj(root.subj)}"
+        #Redwood::log "[2] normalized subject for #{id} is #{Message.normalize_subj(root.subj)}"
         thread = (@subj_thread[Message.normalize_subj(root.subj)] ||= Thread.new)
         #thread = (@subj_thread[root.id] ||= Thread.new)