zammad/lib/secure_mailing/backend/handler_notification_options.rb
2026-01-02 15:41:09 +02:00

39 lines
787 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
class SecureMailing::Backend::HandlerNotificationOptions < SecureMailing::Backend::Handler
attr_reader :from, :recipients, :perform, :security_options
def initialize(from:, recipients:, perform:)
super()
@from = from
@recipients = recipients
@perform = perform
@security_options = {
type: type,
sign: {
success: false,
},
encryption: {
success: false,
},
}
end
def process
check_sign if perform[:sign]
check_encrypt if perform[:encrypt]
security_options
end
def check_sign(from)
raise NotImplementedError
end
def check_encrypt(recipients)
raise NotImplementedError
end
end