202104070000001_setting_add_internal_article_check.rb 653 B

1234567891011121314151617
  1. class SettingAddInternalArticleCheck < ActiveRecord::Migration[5.2]
  2. def change
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Setting.create_if_not_exists(
  6. title: 'Define postmaster filter.',
  7. name: '5500_postmaster_internal_article_check',
  8. area: 'Postmaster::PreFilter',
  9. description: 'Defines the postmaster filter which set the article internal if a forwarded, replied or sent email also exists with the article internal received.',
  10. options: {},
  11. state: 'Channel::Filter::InternalArticleCheck',
  12. frontend: false
  13. )
  14. end
  15. end