"Fossies" - the Fresh Open Source Software Archive

Member "db/migrate/20170203000003_do_not_import_onw_notifications_731.rb" (25 Mar 2021, 646 Bytes) of package /linux/www/zammad-4.0.0.tar.bz2:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "20170203000003_do_not_import_onw_notifications_731.rb": 3.4.1_vs_3.5.0.

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