module Roda::RodaPlugins::MailProcessor::RequestMethods

def _match_content(field, val, content)

(normal regexp match).
strings (case sensitive substring match of any string), or regexp
can be a string (case sensitive substring match), array of
Match if the content matches the given val, which
def _match_content(field, val, content)
  case val
  when String
    content.include?(val)
  when Array
    val.each do |v|
      if content.include?(v)
        return @captures << v
      end
    end
    false
  when Regexp
    if md = val.match(content)
      @captures.concat(md.captures)
    end
  else
    unsupported_matcher(field=>val)
  end
end