module Roda::RodaPlugins::MailProcessor::InstanceMethods
def process_mail(&block)
routes defined via the class-level +rcpt+ method, and then the
Perform the processing of mail for this request, first considering
def process_mail(&block) if string_routes = opts[:mail_processor_string_routes] addresses = mail_recipients addresses.each do |address| if meth = string_routes[address.to_s.downcase] _roda_handle_route{send(meth, @_request)} return end end opts[:mail_processor_regexp_routes].each do |regexp, meth| addresses.each do |address| if md = regexp.match(address) _roda_handle_route{send(meth, @_request, *md.captures)} return end end end end _roda_handle_main_route nil end