mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
39 lines
787 B
Ruby
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
|