No commit activity in last 3 years
No release in over 3 years
This is a helper to debug Action Mailbox. It's not suitable for running on production servers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Action Mailbox Debug

This is a helper to debug Action Mailbox. It's not suitable for running on production servers.

If you have problems with action mailbox and you need to debug it, download your eml file and run it through this gem.

Installation

Add this line to your application's Gemfile:

gem 'action_mailbox_debug'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install action_mailbox_debug

Usage

include ActionMailboxDebug::InboundEmail
create_inbound_email_from_file! 'tmp/test.eml'

This will return an ActionMailbox::InboundEmail object or fail if it already exists.

You may wish to do something to the file beforehand

include ActionMailboxDebug::InboundEmail
create_inbound_email_from_file! 'tmp/test.eml' do |file|
  file.sub('__subject__', 'testing')
end

Then, you can route the inbound email and fix any errors you might have:

inbound_mail.route

Or:

ActionMailbox::RoutingJob.perform_now inbound_mail

Known issues

The helper fails silently and returns nil if a message already exists with the same id. Bummer!