Improved regex for preventing auto responses.
This commit is contained in:
parent
4c3814b204
commit
3da31ee6e1
1 changed files with 1 additions and 1 deletions
|
@ -870,7 +870,7 @@ perform changes on ticket
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.error "ERROR: Invalid regex '#{send_no_auto_response_reg_exp}' in setting send_no_auto_response_reg_exp"
|
logger.error "ERROR: Invalid regex '#{send_no_auto_response_reg_exp}' in setting send_no_auto_response_reg_exp"
|
||||||
logger.error 'ERROR: ' + e.inspect
|
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
|
end
|
||||||
|
|
||||||
# check if notification should be send because of customer emails
|
# check if notification should be send because of customer emails
|
||||||
|
|
Loading…
Reference in a new issue