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