class ActionMailbox::Ingresses::Postmark::InboundEmailsController

def create

def create
  ActionMailbox::InboundEmail.create_and_extract_message_id! params.require("RawEmail")
rescue ActionController::ParameterMissing => error
  logger.error <<~MESSAGE
    #{error.message}
    When configuring your Postmark inbound webhook, be sure to check the box
    labeled "Include raw email content in JSON payload".
  MESSAGE
  head :unprocessable_entity
end