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

Match based on a mail header value.

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