Skip to Content Skip to Search
v7.1.0
module ActionMailbox::InboundEmail::Routable

ActionMailbox::InboundEmail::Routable

A newly received InboundEmail will not be routed synchronously as part of ingress controller’s receival. Instead, the routing will be done asynchronously, using a RoutingJob, to ensure maximum parallel capacity.

By default, all newly created InboundEmail records that have the status of pending, which is the default, will be scheduled for automatic, deferred routing.

Methods
R

Public instance methods

route()

Permalink

Route this InboundEmail using the routing rules declared on the ApplicationMailbox.

Source code GitHub
# File actionmailbox/app/models/action_mailbox/inbound_email/routable.rb, line 21
def route
  ApplicationMailbox.route self
end

route_later()

Permalink

Enqueue a RoutingJob for this InboundEmail.

Source code GitHub
# File actionmailbox/app/models/action_mailbox/inbound_email/routable.rb, line 16
def route_later
  ActionMailbox::RoutingJob.perform_later self
end
Definition files