class IncomingMailbox < ApplicationMailbox # before_processing # around_processing # after_processing # before_processing do # unless User.exist?(email: mail.from) # bounce_with Mailer.user_not_found(mail) # end # end def process # puts mail.methods - Object.methods # mail.content, mail.subject, mail.has_attachments? puts mail.inspect end end