Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-05-19 01:19:25 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-05-19 01:25:45 +0300
commitc337e748d385fea5c768a8e7de55975dca7fa484 (patch)
treef9646fbb68614b633964bc43d725296b61047fec /lib/gitlab/incoming_email.rb
parent3f4a6412dcc35c182d993cd1350459e8a4a1b8d1 (diff)
so we use separate classes to handle different tasks
Diffstat (limited to 'lib/gitlab/incoming_email.rb')
-rw-r--r--lib/gitlab/incoming_email.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/incoming_email.rb b/lib/gitlab/incoming_email.rb
index 8ce9d32abe0..f4ef1559716 100644
--- a/lib/gitlab/incoming_email.rb
+++ b/lib/gitlab/incoming_email.rb
@@ -1,7 +1,7 @@
module Gitlab
module IncomingEmail
class << self
- FALLBACK_REPLY_MESSAGE_ID_REGEX = /\Areply\-(.+)@#{Gitlab.config.gitlab.host}\Z/.freeze
+ FALLBACK_REPLY_MAIL_ID_REGEX = /\Areply\-(.+)@#{Gitlab.config.gitlab.host}\Z/.freeze
def enabled?
config.enabled && config.address
@@ -21,8 +21,8 @@ module Gitlab
match[1]
end
- def key_from_fallback_reply_message_id(message_id)
- match = message_id.match(FALLBACK_REPLY_MESSAGE_ID_REGEX)
+ def key_from_fallback_reply_mail_id(mail_id)
+ match = mail_id.match(FALLBACK_REPLY_MAIL_ID_REGEX)
return unless match
match[1]