20170927000001_setting_send_no_auto_response_reg_exp.rb 499 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingSendNoAutoResponseRegExp < ActiveRecord::Migration[5.0]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. # improved domain name matching
  7. return if !Setting.exists?(name: 'send_no_auto_response_reg_exp')
  8. Setting.set('send_no_auto_response_reg_exp', '(mailer-daemon|postmaster|abuse|root|noreply|noreply.+?|no-reply|no-reply.+?)@.+?')
  9. end
  10. end