aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/action_mailbox/inbound_email/message_id.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/action_mailbox/inbound_email/message_id.rb')
-rw-r--r--app/models/action_mailbox/inbound_email/message_id.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/action_mailbox/inbound_email/message_id.rb b/app/models/action_mailbox/inbound_email/message_id.rb
index f10f59ea45..244a2e439b 100644
--- a/app/models/action_mailbox/inbound_email/message_id.rb
+++ b/app/models/action_mailbox/inbound_email/message_id.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
-# The `Message-ID` as specified by rfc822 is supposed to be a unique identifier for that individual email.
-# That makes it an ideal tracking token for debugging and forensics, just like `X-Request-Id` does for
+# The `Message-ID` as specified by rfc822 is supposed to be a unique identifier for that individual email.
+# That makes it an ideal tracking token for debugging and forensics, just like `X-Request-Id` does for
# web request.
#
# If an inbound email does not, against the rfc822 mandate, specify a Message-ID, one will be generated
@@ -13,7 +13,7 @@ module ActionMailbox::InboundEmail::MessageId
before_save :generate_missing_message_id
end
- module ClassMethods
+ class_methods do
# Create a new `InboundEmail` from the raw `source` of the email, which be uploaded as a Active Storage
# attachment called `raw_email`. Before the upload, extract the Message-ID from the `source` and set
# it as an attribute on the new `InboundEmail`.