Improved regex for preventing auto responses.

This commit is contained in:
Martin Edenhofer 2017-09-08 10:54:15 +02:00
parent 4c3814b204
commit 3da31ee6e1

View file

@ -870,7 +870,7 @@ perform changes on ticket
rescue => e
logger.error "ERROR: Invalid regex '#{send_no_auto_response_reg_exp}' in setting send_no_auto_response_reg_exp"
logger.error 'ERROR: ' + e.inspect
next if recipient_email =~ /(mailer-daemon|postmaster|abuse|root)@.+?\..+?/i
next if recipient_email =~ /(mailer-daemon|postmaster|abuse|root|noreply|noreply.+?|no-reply|no-reply.+?)@.+?/i
end
# check if notification should be send because of customer emails