class ActionMailbox::Router
def mailbox_for(inbound_email)
def mailbox_for(inbound_email) routes.detect { |route| route.match?(inbound_email) }&.mailbox_class end
def mailbox_for(inbound_email) routes.detect { |route| route.match?(inbound_email) }&.mailbox_class end