debian-mirror-gitlab/lib/gitlab/email/service_desk_receiver.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
361 B
Ruby
Raw Normal View History

2020-07-28 23:09:34 +05:30
# frozen_string_literal: true
module Gitlab
module Email
class ServiceDeskReceiver < Receiver
private
2021-06-08 01:23:25 +05:30
def find_handler
2022-01-26 12:08:38 +05:30
return unless mail_key
2020-07-28 23:09:34 +05:30
2022-01-26 12:08:38 +05:30
Gitlab::Email::Handler::ServiceDeskHandler.new(mail, nil, service_desk_key: mail_key)
2020-07-28 23:09:34 +05:30
end
2022-01-26 12:08:38 +05:30
def email_class
::Gitlab::ServiceDeskEmail
2020-07-28 23:09:34 +05:30
end
end
end
end