Просмотр исходного кода

Fixed issue #568 - Imap sort errors with gmail in production.log (removed log notice - added comment to source code).

Martin Edenhofer 8 лет назад
Родитель
Сommit
4b173d02a4
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/models/channel/driver/imap.rb

+ 2 - 2
app/models/channel/driver/imap.rb

@@ -96,10 +96,10 @@ example
       @imap.select(options[:folder])
     end
 
+    # sort messages by date on server (if not supported), if not fetch messages via search (first in, first out)
     begin
       message_ids = @imap.sort(['DATE'], ['ALL'], 'US-ASCII')
-    rescue => e
-      Rails.logger.error "Unable to use imap sort: #{e.inspect}, use imap search now"
+    rescue
       message_ids = @imap.search(['ALL'])
     end