<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,6 +11,7 @@ cacherebuild = false
 configf = ENV['HOME'] + '/.feed2imaprc'
 progname = File::basename($PROGRAM_NAME)
 opts = OptionParser::new do |opts|
+  opts.program_name = progname
   opts.banner = &quot;Usage: #{progname} [options]&quot;
   opts.separator &quot;&quot;
   opts.separator &quot;Options:&quot;</diff>
      <filename>bin/feed2imap</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 # Global options:
 # max-failures: maximum number of failures allowed before they are reported in
-#   normal mode (default 5). By default, failures are only visible in verbose
-#   mode.
+#   normal mode (default 10). By default, failures are only visible in verbose
+#   mode. Most feeds tend to suffer from temporary failures.
 # dumpdir: (for debugging purposes) directory where all fetched feeds will be
 #   dumped.
 # debug-updated: (for debugging purposes) if true, display a lot of information</diff>
      <filename>data/doc/feed2imap/examples/feed2imaprc</filename>
    </modified>
    <modified>
      <diff>@@ -176,6 +176,7 @@ class CachedChannel
       puts &quot;-------Items already there (#{@items.length}) :----------&quot;
       @items.each { |i| puts &quot;#{i.to_s}&quot; }
       puts &quot;Items always considered as new: #{always_new.to_s}&quot;
+      puts &quot;Items compared ignoring the hash: #{ignore_hash.to_s}&quot;
     end
     items.each do |i|
       found = false</diff>
      <filename>lib/feed2imap/cache.rb</filename>
    </modified>
    <modified>
      <diff>@@ -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>
      <filename>lib/feed2imap/config.rb</filename>
    </modified>
    <modified>
      <diff>@@ -232,6 +232,7 @@ class Feed2Imap
     @logger.info(&quot;Closing IMAP connections ...&quot;)
     @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.</diff>
      <filename>lib/feed2imap/feed2imap.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0c2568bc2c6127b784d206f20579bf0a55c6f21c</id>
    </parent>
  </parents>
  <author>
    <name>lnu</name>
    <email>lnu@f70e237a-67f3-0310-a06c-d2b8a7116972</email>
  </author>
  <url>http://github.com/ln/feed2imap/commit/0dddb4ddf7c2cc6ef524e998b315000a9420219f</url>
  <id>0dddb4ddf7c2cc6ef524e998b315000a9420219f</id>
  <committed-date>2006-11-13T14:39:08-08:00</committed-date>
  <authored-date>2006-11-13T14:39:08-08:00</authored-date>
  <message>small improvements to debug-updated

git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@115 f70e237a-67f3-0310-a06c-d2b8a7116972</message>
  <tree>20b7351981b0724d9e00329c62480f5a0cd184b4</tree>
  <committer>
    <name>lnu</name>
    <email>lnu@f70e237a-67f3-0310-a06c-d2b8a7116972</email>
  </committer>
</commit>
