mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow logging of raw body of all unprocessable email
set log_mail_processing_failures to true to enable
This commit is contained in:
@@ -31,6 +31,9 @@ module Jobs
|
||||
end
|
||||
|
||||
def handle_failure(mail_string, e)
|
||||
|
||||
Rails.logger.warn("Email can not be processed: #{e}\n\n#{mail_string}") if SiteSetting.log_mail_processing_failures
|
||||
|
||||
template_args = {}
|
||||
case e
|
||||
when Email::Receiver::UserNotSufficientTrustLevelError
|
||||
|
||||
Reference in New Issue
Block a user