summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-11-13 22:39:08 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-11-13 22:39:08 +0000
commit0dddb4ddf7c2cc6ef524e998b315000a9420219f (patch)
tree20b7351981b0724d9e00329c62480f5a0cd184b4 /lib
parent0c2568bc2c6127b784d206f20579bf0a55c6f21c (diff)
downloadfeed2imap-0dddb4ddf7c2cc6ef524e998b315000a9420219f.tar.gz
feed2imap-0dddb4ddf7c2cc6ef524e998b315000a9420219f.tar.bz2
feed2imap-0dddb4ddf7c2cc6ef524e998b315000a9420219f.zip
small improvements to debug-updated
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@115 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/cache.rb1
-rw-r--r--lib/feed2imap/config.rb2
-rw-r--r--lib/feed2imap/feed2imap.rb1
3 files changed, 3 insertions, 1 deletions
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.