]> git.notmuchmail.org Git - sup/commitdiff
added debug check for Thread vs ::Thread, and removed extraneous logging
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 2 Dec 2006 00:31:19 +0000 (00:31 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 2 Dec 2006 00:31:19 +0000 (00:31 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@58 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/thread.rb

index c7e36b3e9470606baefd012135b3e841e15814b1..be3a7780c92f18b0196b731996a5a0032a16e696 100644 (file)
@@ -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)