Using the Omah-plug-sps gem with the Classic_omah gem
require 'classic_omah' require 'omah-plugin-sps' mail = { address: 'mail.jamesrobertson.eu' } m = mail.merge({user_name: 'james', password: 'secret'}) plugins = {sps: {active: true, address: 'sps', port: 59000}} comah = ClassicOmah.new user: 'james', mail: m, plugins: plugins comah.fetch_email
The above example demonstrates using the Omah-plugin-sps gem with the Classic_omah gem. Note: Using a plugin with the Classic_omah gem is optional.
Resources
- classic_omah[rubygems.org]
- omah-plugin-sps[rubygems.org]