123456789101112131415 |
- class SettingSendNoAutoResponseRegExp < ActiveRecord::Migration[5.0]
- def up
-
- return if !Setting.exists?(name: 'system_init_done')
-
- return if !Setting.exists?(name: 'send_no_auto_response_reg_exp')
- Setting.set('send_no_auto_response_reg_exp', '(mailer-daemon|postmaster|abuse|root|noreply|noreply.+?|no-reply|no-reply.+?)@.+?')
- end
- end
|