新收到的 InboundEmail 不会作为入口控制器接收过程的一部分进行同步路由。相反,路由将使用 RoutingJob 异步进行,以确保最大的并行处理能力。
默认情况下,所有状态为 pending(这是默认状态)的新创建的 InboundEmail 记录都将被安排进行自动、延迟路由。
方法
    - R
实例公共方法
route() 链接
使用 `ApplicationMailbox` 上声明的路由规则对此 InboundEmail 进行路由。
源文件: 显示 | 在 GitHub 上
# File actionmailbox/app/models/action_mailbox/inbound_email/routable.rb, line 21 def route ApplicationMailbox.route self end
route_later() 链接
为此 InboundEmail 入队一个 RoutingJob。
源文件: 显示 | 在 GitHub 上
# File actionmailbox/app/models/action_mailbox/inbound_email/routable.rb, line 16 def route_later ActionMailbox::RoutingJob.perform_later self end