Class: ActionMailbox::Ingresses::PostageApp::InboundEmailsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/ingresses/action_mailbox/ingresses/postage_app/inbound_emails_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



7
8
9
10
11
12
13
14
15
16
# File 'app/ingresses/action_mailbox/ingresses/postage_app/inbound_emails_controller.rb', line 7

def create
  ActionMailbox::InboundEmail.create_and_extract_message_id!(message_param)

  head(:ok)

rescue JSON::ParserError => e
  logger.error(e.message)

  head(:unprocessable_entity)
end