diff options
-rw-r--r-- | app/models/action_mailroom/inbound_email.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/action_mailroom/inbound_email.rb b/app/models/action_mailroom/inbound_email.rb index f280bc192c..755d7be138 100644 --- a/app/models/action_mailroom/inbound_email.rb +++ b/app/models/action_mailroom/inbound_email.rb @@ -1,11 +1,13 @@ class ActionMailroom::InboundEmail < ActiveRecord::Base self.table_name = "action_mailroom_inbound_emails" - after_create_commit :deliver_to_mailroom_later has_one_attached :raw_message enum status: %i[ pending processing delivered failed bounced ] + after_create_commit :deliver_to_mailroom_later + + def mail @mail ||= Mail.new(Mail::Utilities.binary_unsafe_to_crlf(raw_message.download)) end |