123456789101112131415161718 |
- class DoNotImportOnwNotifications731 < ActiveRecord::Migration
- def up
- # return if it's a new setup
- return if !Setting.find_by(name: 'system_init_done')
- Setting.create_if_not_exists(
- title: 'Define postmaster filter.',
- name: '0014_postmaster_filter_own_notification_loop_detection',
- area: 'Postmaster::PreFilter',
- description: 'Define postmaster filter to check if email is a own created notification email, then ignore it to prevent email loops.',
- options: {},
- state: 'Channel::Filter::OwnNotificationLoopDetection',
- frontend: false
- )
- end
- end
|