From: wmorgan Date: Fri, 5 Jan 2007 23:03:21 +0000 (+0000) Subject: log message cleanups X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=408bf2e3c32d4810808db53180737fb864953457;p=sup log message cleanups git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@195 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/imap.rb b/lib/sup/imap.rb index 8cafb4f..da6a311 100644 --- a/lib/sup/imap.rb +++ b/lib/sup/imap.rb @@ -169,13 +169,11 @@ private end def scan_mailbox - Redwood::log "#{SCAN_INTERVAL - (Time.now - @last_scan)} seconds to go before resizing mailbox" if @last_scan return if @last_scan && (Time.now - @last_scan) < SCAN_INTERVAL @imap.examine mailbox last_id = @imap.responses["EXISTS"].last @last_scan = Time.now - Redwood::log "IMAP server reports last id as #{last_id}. I have a last id of #{@ids.length}" return if last_id == @ids.length Redwood::log "fetching IMAP headers #{(@ids.length + 1) .. last_id}" values = @imap.fetch((@ids.length + 1) .. last_id, ['RFC822.SIZE', 'INTERNALDATE'])