From 9b078634a6dfc9ab12d4685180935eb50585e705 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sat, 30 Dec 2006 05:27:15 +0000 Subject: [PATCH] whoops! git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@119 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/imap.rb | 2 +- lib/sup/index.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sup/imap.rb b/lib/sup/imap.rb index e856d99..a0a7267 100644 --- 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 index 25a48df..fedef3c 100644 --- 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 -- 2.45.2