lib/roda/plugins/mail_processor.rb
def process_mail(mail)
          scope = new("PATH_INFO"=>'', 'SCRIPT_NAME'=>'', "REQUEST_METHOD"=>"PROCESSMAIL", 'rack.input'=>StringIO.new, 'roda.mail'=>mail)

          begin
            begin
              scope.process_mail
            rescue UnhandledMail
              scope.unhandled_mail_hook
            else
              scope.handled_mail_hook
            end
          ensure
            scope.after_mail_hook
          end
        end
# Process the given Mail instance, calling the appropriate hooks depending on
# whether the mail was handled during processing.
Process the given Mail instance, calling the appropriate hooks depending on
whether the mail was handled during processing.
Process the given Mail instance calling the appropriate hooks depending on whether the mail was handled during processing .
def process_mail(mail)
          scope = new("PATH_INFO"=>'', 'SCRIPT_NAME'=>'', "REQUEST_METHOD"=>"PROCESSMAIL", 'rack.input'=>StringIO.new, 'roda.mail'=>mail)
          begin
            begin
              scope.process_mail
            rescue UnhandledMail
              scope.unhandled_mail_hook
            else
              scope.handled_mail_hook
            end
          ensure
            scope.after_mail_hook
          end
        end
def process_mail ( mail ) scope = new ( "PATH_INFO" => '' , 'SCRIPT_NAME' => '' , "REQUEST_METHOD" => "PROCESSMAIL" , 'rack.input' => StringIO . new , 'roda.mail' => mail ) begin begin scope . process_mail rescue UnhandledMail scope . unhandled_mail_hook else scope . handled_mail_hook end ensure scope . after_mail_hook end end
Process the given Mail instance, calling the appropriate hooks depending on
whether the mail was handled during processing.
Process the given Mail instance calling the appropriate hooks depending on whether the mail was handled during processing .
mail