No commit activity in last 3 years
No release in over 3 years
exception_notification parser.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
>= 0
~> 10.0
~> 3.0

Runtime

>= 0
 Project Readme

ExceptionNotification::Parser

https://rubygems.org/gems/exception_notification outputed mail parser.

Installation

Add this line to your application's Gemfile:

gem 'exception_notification-parser'

And then execute:

$ bundle

Usage

mail_raw = File.read('./mail') # body with header

# case 1
struct = ExceptionNotification::Parser.parse(mail_raw: mail_raw)
struct.get(:exception_class_name)
struct.get(:request_url)
struct.subject.get(:mail_prefix)

# case 2
mail = Mail.new(mail_raw)
body = mail.body.decoded.toutf8
struct = ExceptionNotification::Parser.parse(body: body, subject: mail.suject)
struct.get(:exception_class_name)
struct.get(:request_url)

accessible list

exception_class_name
action_name
controller
error_message

request_url
request_http_method
request_ip_address
request_timestamp
requist_rails_root
session_id
environment_content_length
environment_content_type
environment_http_host
environment_http_user_agent
environment_remote_addr
environment_request_path
environment_request_uri
environment_request_method