diff options
Diffstat (limited to 'lib/gitlab/service_desk_email.rb')
-rw-r--r-- | lib/gitlab/service_desk_email.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/service_desk_email.rb b/lib/gitlab/service_desk_email.rb index 52da10eff3e..14f07140825 100644 --- a/lib/gitlab/service_desk_email.rb +++ b/lib/gitlab/service_desk_email.rb @@ -23,6 +23,12 @@ module Gitlab config.address.sub(Gitlab::IncomingEmail::WILDCARD_PLACEHOLDER, key) end + + def key_from_fallback_message_id(mail_id) + message_id_regexp = /\Areply\-(.+)@#{Gitlab.config.gitlab.host}\z/ + + mail_id[message_id_regexp, 1] + end end end end |