Project

dummy_omah

0.0
No commit activity in last 3 years
No release in over 3 years
Simulates receiving email messages for testing Omah (Offline Mail Helper) gem plugins etc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.8.0, ~> 0.8
 Project Readme

Testing the Omah gem using the DummyOmah gem

require 'dummy_omah'

a = [
      ['001', 'info@twitter.com', 'somebody@jamesrobertson.eu',\
      'test 200','2015-may-26 08:55','just a quick test',\
      '<p>just a quick test</p>',[]]
    ]

dummy = DummyOmah.new filepath: '/tmp'
dummy.fetch_email a

The above example simulates messages recevied from an email inbox. The expected fields in a records are id, from, to, subject, date, body_text, body_html, and attachments. All fields are strings except attachments which is an array.

Resources

dummyomah gem omah email testing