module Roda::RodaPlugins::MailProcessor::RequestMethods

  1. lib/roda/plugins/mail_processor.rb

Methods

Public Instance

  1. handle
  2. handle_header
  3. header

Public Instance methods

handle(&block)

Mark the mail as having been handled, so routing will not call unhandled_mail implicitly.

[show source]
    # File lib/roda/plugins/mail_processor.rb
503 def handle(&block)
504   env['roda.mail_handled'] = true
505   always(&block)
506 end
handle_header(key, value=nil)

Same as header, but also mark the message as being handled.

[show source]
    # File lib/roda/plugins/mail_processor.rb
488 def handle_header(key, value=nil)
489   header(key, value) do |*args|
490     handle do
491       yield(*args)
492     end
493   end
494 end
header(key, value=nil, &block)

Match based on a mail header value.

[show source]
    # File lib/roda/plugins/mail_processor.rb
497 def header(key, value=nil, &block)
498   on(:header=>[key, value], &block)
499 end