From: wmorgan Date: Sat, 2 Dec 2006 00:31:19 +0000 (+0000) Subject: added debug check for Thread vs ::Thread, and removed extraneous logging X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=4c8091314b3ad6005bc33d89793f8ebda145756b;p=sup 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 --- diff --git a/lib/sup/thread.rb b/lib/sup/thread.rb index c7e36b3..be3a778 100644 --- 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)