From 0dddb4ddf7c2cc6ef524e998b315000a9420219f Mon Sep 17 00:00:00 2001 From: lnu Date: Mon, 13 Nov 2006 22:39:08 +0000 Subject: small improvements to debug-updated git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@115 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/cache.rb | 1 + lib/feed2imap/config.rb | 2 +- lib/feed2imap/feed2imap.rb | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/feed2imap/cache.rb b/lib/feed2imap/cache.rb index 00e6951..6dc0ddf 100644 --- a/lib/feed2imap/cache.rb +++ b/lib/feed2imap/cache.rb @@ -176,6 +176,7 @@ class CachedChannel puts "-------Items already there (#{@items.length}) :----------" @items.each { |i| puts "#{i.to_s}" } puts "Items always considered as new: #{always_new.to_s}" + puts "Items compared ignoring the hash: #{ignore_hash.to_s}" end items.each do |i| found = false diff --git a/lib/feed2imap/config.rb b/lib/feed2imap/config.rb index c6439d1..3aea4bb 100644 --- a/lib/feed2imap/config.rb +++ b/lib/feed2imap/config.rb @@ -36,7 +36,7 @@ class F2IConfig @dumpdir = @conf['dumpdir'] || nil @conf['feeds'] ||= [] @feeds = [] - @max_failures = (@conf['max-failures'] || 5).to_i + @max_failures = (@conf['max-failures'] || 10).to_i @updateddebug = (@conf['debug-updated'] and @conf['debug-updated'] != 'false') @imap_accounts = ImapAccounts::new @conf['feeds'].each do |f| diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index 3cc27ca..a3666db 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -232,6 +232,7 @@ class Feed2Imap @logger.info("Closing IMAP connections ...") @config.imap_accounts.each_value do |ac| begin + ac.logout ac.disconnect rescue # servers tend to cause an exception to be raised here, hence the INFO level. -- cgit v1.2.3-54-g00ecf