commit 9b078634a6dfc9ab12d4685180935eb50585e705
parent 0de0b8b4c3bd857c8fed4f295a2cea35598ea451
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Sat, 30 Dec 2006 05:27:15 +0000
whoops!
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@119 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/imap.rb b/lib/sup/imap.rb
@@ -44,7 +44,7 @@ class IMAP < Source
BufferManager.say "Connecting to IMAP server #{host}..." do
::Thread.new do
begin
- raise Net::IMAP::ByeResponseError, "simulated imap failure"
+ #raise Net::IMAP::ByeResponseError, "simulated imap failure"
@imap = Net::IMAP.new host, ssl? ? 993 : 143, ssl?
@imap.authenticate 'LOGIN', @username, @password
@imap.examine mailbox
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -125,7 +125,7 @@ class Index
end
def num_results_for opts={}
- with(@index.search(build_query(opts)).total_hits) { |x| Redwood::log "num_results_for: have #{x} for query #{query}" }
+ with(build_query(opts)) { |query| with(@index.search(query).total_hits) { |x| Redwood::log "num_results_for: have #{x} for query #{query}" } }
end
## yield all messages in the thread containing 'm' by repeatedly