summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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.