ingress
The snippet can be accessed without any authentication.
Authored by
Justin Back
Edited
# frozen_string_literal: true
module ActionMailbox
class Ingresses::Postal::InboundEmailsController < ActionMailbox::BaseController
#before_action :authenticate_by_password
def create
ActionMailbox::InboundEmail.create_and_extract_message_id! Base64.decode64(params.require("message"))
rescue ActionController::ParameterMissing => error
logger.error <<~MESSAGE
#{error.message}
MESSAGE
head :unprocessable_entity
end
end
end
Please register or sign in to comment