diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-12-26 19:18:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-26 19:18:38 -0500 |
commit | 6719d37be9b3cf69fa43688e252d29fbb38244de (patch) | |
tree | 78f565633df8049313d71646abfc2c0b584b6766 /actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb | |
parent | 4198323b9d234b97546ea2c7bc075ada3235043b (diff) | |
parent | 3adb2619857fabdbd40de8fd4199f3b7ffdaed36 (diff) | |
download | rails-6719d37be9b3cf69fa43688e252d29fbb38244de.tar.gz rails-6719d37be9b3cf69fa43688e252d29fbb38244de.tar.bz2 rails-6719d37be9b3cf69fa43688e252d29fbb38244de.zip |
Merge pull request #34801 from bogdanvlviv/follow-up-34786
Follow up 34786
Diffstat (limited to 'actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb')
-rw-r--r-- | actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb b/actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb index 244a2e439b..2ad4525929 100644 --- a/actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb +++ b/actionmailbox/app/models/action_mailbox/inbound_email/message_id.rb @@ -18,7 +18,7 @@ module ActionMailbox::InboundEmail::MessageId # attachment called `raw_email`. Before the upload, extract the Message-ID from the `source` and set # it as an attribute on the new `InboundEmail`. def create_and_extract_message_id!(source, **options) - create! message_id: extract_message_id(source), **options do |inbound_email| + create! options.merge(message_id: extract_message_id(source)) do |inbound_email| inbound_email.raw_email.attach io: StringIO.new(source), filename: "message.eml", content_type: "message/rfc822" end end |