1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
require 'mail' module MailHandler module Backends module MailBackend def backend() 'Mail' end # Note that the decode flag is not yet used def mail_from_raw_email(data, decode=true) Mail.new(data) end end end end