diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 03:04:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 03:04:43 +0000 |
commit | ddcad64aa28ebc4d5369815923fb6b99484c134f (patch) | |
tree | a3027112d3a83e78a8e9c4c5b2d4e58eb2f5ed12 /lib/redmine/imap.rb | |
parent | 429210f03ff072b84c633a5f9ec04fd2c8b8c24c (diff) | |
download | redmine-ddcad64aa28ebc4d5369815923fb6b99484c134f.tar.gz redmine-ddcad64aa28ebc4d5369815923fb6b99484c134f.zip |
Don't abort processing of emails when an email triggers a parsing exception (#16122).
git-svn-id: http://svn.redmine.org/redmine/trunk@12995 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/imap.rb')
-rw-r--r-- | lib/redmine/imap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/imap.rb b/lib/redmine/imap.rb index e164ba8ac..dc4334c2d 100644 --- a/lib/redmine/imap.rb +++ b/lib/redmine/imap.rb @@ -32,7 +32,7 @@ module Redmine imap.uid_search(['NOT', 'SEEN']).each do |uid| msg = imap.uid_fetch(uid,'RFC822')[0].attr['RFC822'] logger.debug "Receiving message #{uid}" if logger && logger.debug? - if MailHandler.receive(msg, options) + if MailHandler.safe_receive(msg, options) logger.debug "Message #{uid} successfully received" if logger && logger.debug? if imap_options[:move_on_success] imap.uid_copy(uid, imap_options[:move_on_success]) |