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

Match based on a mail header value.

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