diff --git a/app/models/channel/email_parser.rb b/app/models/channel/email_parser.rb index 6f5547955ca7..a4aa48474ea1 100644 --- a/app/models/channel/email_parser.rb +++ b/app/models/channel/email_parser.rb @@ -537,6 +537,11 @@ def self.process_unprocessable_articles(_params = {}) ApplicationHandleInfo.use('email_parser.postmaster') do parsed = Channel::EmailParser.new.parse(article.as_raw.content) + if parsed[:body] == ::HtmlSanitizer::UNPROCESSABLE_HTML_MSG + puts "ERROR: Failed to reprocess the article, please verify the content of the article and if needed increase the timeout (see: Setting.get('html_sanitizer_processing_timeout'))." # rubocop:disable Rails/Output + next + end + article.update!(body: parsed[:body], content_type: parsed[:content_type]) end end