]> git.cworth.org Git - sup/blobdiff - lib/sup/thread.rb
added debug check for Thread vs ::Thread, and removed extraneous logging
[sup] / lib / sup / thread.rb
index 688a033ee58b13d26ce71096cb69114f20f492e7..be3a7780c92f18b0196b731996a5a0032a16e696 100644 (file)
@@ -7,6 +7,7 @@ class Thread
 
   attr_reader :containers
   def initialize
+    raise "wrong thread, buddy!" if block_given?
     @containers = []
   end
 
@@ -321,6 +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)}"
         thread = (@subj_thread[Message.normalize_subj(root.subj)] ||= Thread.new)
         #thread = (@subj_thread[root.id] ||= Thread.new)
 
@@ -341,6 +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)}"
         thread = (@subj_thread[Message.normalize_subj(root.subj)] ||= Thread.new)
         #thread = (@subj_thread[root.id] ||= Thread.new)