20170203000003_do_not_import_onw_notifications_731.rb 723 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class DoNotImportOnwNotifications731 < ActiveRecord::Migration[4.2]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'Define postmaster filter.',
  8. name: '0014_postmaster_filter_own_notification_loop_detection',
  9. area: 'Postmaster::PreFilter',
  10. description: 'Define postmaster filter to check if email is a own created notification email, then ignore it to prevent email loops.',
  11. options: {},
  12. state: 'Channel::Filter::OwnNotificationLoopDetection',
  13. frontend: false
  14. )
  15. end
  16. end