20190806000001_setting_postmaster_send_reject_email.rb 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingPostmasterSendRejectEmail < ActiveRecord::Migration[5.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: 'Send postmaster mail if mail too large',
  8. name: 'postmaster_send_reject_if_mail_too_large',
  9. area: 'Email::Base',
  10. description: 'Send postmaster reject mail to sender of mail if mail is too large.',
  11. options: {
  12. form: [
  13. {
  14. display: '',
  15. null: true,
  16. name: 'postmaster_send_reject_if_mail_too_large',
  17. tag: 'boolean',
  18. options: {
  19. true => 'yes',
  20. false => 'no',
  21. },
  22. },
  23. ],
  24. },
  25. state: true,
  26. preferences: {
  27. online_service_disable: true,
  28. permission: ['admin.channel_email'],
  29. },
  30. frontend: false
  31. )
  32. end
  33. end