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
498 def handle(&block)
499   env['roda.mail_handled'] = true
500   always(&block)
501 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
483 def handle_header(key, value=nil)
484   header(key, value) do |*args|
485     handle do
486       yield(*args)
487     end
488   end
489 end
header(key, value=nil, &block)

Match based on a mail header value.

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