summaryrefslogtreecommitdiff
path: root/lib/feed2imap/feed2imap.rb
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/feed2imap.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb
index 1df93bd..348f414 100644
--- a/lib/feed2imap/feed2imap.rb
+++ b/lib/feed2imap/feed2imap.rb
@@ -27,7 +27,7 @@ require 'logger'
require 'thread'
# Feed2Imap version
-F2I_VERSION = '0.2'
+F2I_VERSION = '0.3'
class Feed2Imap
def initialize(verbose, cacherebuild, configfile)
@@ -146,10 +146,12 @@ class Feed2Imap
@logger.fatal("Exception caught while writing cache to #{@config.cache}: #{$!}")
end
@logger.info("Closing IMAP connections")
- begin
- @config.imap_accounts.each_value { |ac| ac.disconnect }
- rescue
- @logger.fatal("Exception caught while closing connection to #{ac.to_s}: #{$!}")
+ @config.imap_accounts.each_value do |ac|
+ begin
+ ac.disconnect
+ rescue
+ @logger.fatal("Exception caught while closing connection to #{ac.to_s}: #{$!}")
+ end
end
end
end
cs/password-store.el?h=1.7.4&id=65cead8c0fdb07ce3821f6b97bdcb32684d0c3f7&follow=1'>emacs: Release version 1.0.1 of Emacs packageSvend Sorensen2-5/+10 2017-08-29emacs: --run-async: Quote shell argumentsDamien Cassou1-4/+5 2017-08-29emacs: Update author's email addressSvend Sorensen1-2/+2 2017-08-29emacs: Fix package-lint violationsSvend Sorensen1-2/+3 2017-07-26emacs: Release version 1.0.0 of Emacs packageSvend Sorensen2-1/+8 2017-07-26emacs: Use with-editor to wrap "pass edit"Svend Sorensen2-9/+17 2017-04-13Bump version1.7.1Jason A. Donenfeld1-1/+1 2017-04-13init: match only the public keyJason A. Donenfeld1-1/+1 2017-03-28Use $GPG variableJason A. Donenfeld1-3/+3 2017-03-20Fix compatibility with GnuPG 2.2.19Andreas Stieger2-2/+2 2017-03-01tests: fix on OSX by not using the tr hackJason A. Donenfeld3-5/+2 2017-02-26Bump version1.7Jason A. Donenfeld1-1/+1 2017-02-26Modernize makefileJason A. Donenfeld2-31/+36 2017-02-25CopyrightJason A. Donenfeld1-1/+1 2017-02-25StyleJason A. Donenfeld1-2/+2 2017-02-25git: use inner-most directoryJason A. Donenfeld2-27/+48 2017-02-25clip: sleep may require argv[0] to be sleepJason A. Donenfeld1-1/+1 2017-02-25man: document system extensionsJason A. Donenfeld1-2/+3