]> git.cworth.org Git - sup/commitdiff
yet more error-handling minor tweaks. jesus christ i hope it works now.
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 5 Jan 2007 23:09:30 +0000 (23:09 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 5 Jan 2007 23:09:30 +0000 (23:09 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@197 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/imap.rb

index da6a311740d8d69255ee644a1a7c21c1c36b90d7..a3dca4775939d54b2f9902a679c9f4f5014f99ee 100644 (file)
@@ -147,7 +147,7 @@ class IMAP < Source
       begin
         connect
         scan_mailbox
-      rescue SocketError, Net::IMAP::Error, SourceError => e
+      rescue SocketError, Net::IMAP::Error => e
         die_from e, :while => "scanning mailbox"
       end
     end
@@ -218,7 +218,7 @@ private
       f = @imap.fetch imap_id, (fields + ['RFC822.SIZE', 'INTERNALDATE']).uniq
       got_id = make_id f[0]
       die_from "IMAP message mismatch: requested #{id}, got #{got_id}.", :suggest_rebuild => true unless id == got_id
-    rescue SocketError, Net::IMAP::Error
+    rescue SocketError, Net::IMAP::Error => e
       die_from e, :while => "communicating with IMAP server"
     rescue Errno::EPIPE
       if (retries += 1) <= 3