From 3da31ee6e15de7ee92f8c170bbb35dd5ea9b96b0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 8 Sep 2017 10:54:15 +0200 Subject: [PATCH] Improved regex for preventing auto responses. --- app/models/ticket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ticket.rb b/app/models/ticket.rb index ac7933b4f..c71a4cb8d 100644 --- a/app/models/ticket.rb +++ b/app/models/ticket.rb @@ -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