2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2020-10-29 14:58:36 +00:00
|
|
|
class SettingAddImportArchive < ActiveRecord::Migration[5.1]
|
|
|
|
def change
|
|
|
|
|
|
|
|
# return if it's a new setup
|
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
|
|
|
|
|
|
|
Setting.create_if_not_exists(
|
|
|
|
title: 'Define postmaster filter.',
|
|
|
|
name: '0018_postmaster_import_archive',
|
|
|
|
area: 'Postmaster::PreFilter',
|
|
|
|
description: 'Define postmaster filter to import archive mailboxes.',
|
|
|
|
options: {},
|
|
|
|
state: 'Channel::Filter::ImportArchive',
|
|
|
|
frontend: false
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|