diff options
Diffstat (limited to 'app/models/action_mailbox/inbound_email.rb')
-rw-r--r-- | app/models/action_mailbox/inbound_email.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/models/action_mailbox/inbound_email.rb b/app/models/action_mailbox/inbound_email.rb deleted file mode 100644 index 3e528b6642..0000000000 --- a/app/models/action_mailbox/inbound_email.rb +++ /dev/null @@ -1,17 +0,0 @@ -class ActionMailbox::InboundEmail < ActiveRecord::Base - self.table_name = "action_mailbox_inbound_email" - - after_create_commit :deliver_to_mailroom_later - has_one_attached :raw_message - - enum status: %i[ pending processing delivered failed bounced ] - - def mail - @mail ||= Mail.new(Mail::Utilities.binary_unsafe_to_crlf(raw_message.download)) - end - - private - def deliver_to_mailroom_later - ActionMailbox::DeliverInboundEmailToMailroomJob.perform_later self - end -end |