

# …involve a second Action Mailer to ask which project to forward into. # Record the forward on the one project, or… # Callbacks specify prerequisites to processing from ) end end # app/mailboxes/forwards_mailbox.rbĬlass ForwardsMailbox < ApplicationMailbox choose_project ( inbound_email, forwarder: forwarder ). content end def request_forwarding_project Forwards :: RoutingMailer.

no_projects ( inbound_email, forwarder: forwarder ) end end def record_forward forwarder. none? # Use Action Mailers to bounce incoming emails back to sender – this halts processing bounce_with Forwards :: BounceMailer. request_forwarding_project end end private def require_projects if forwarder. one? record_forward else # …involve a second Action Mailer to ask which project to forward into. # app/mailboxes/forwards_mailbox.rb class ForwardsMailbox < ApplicationMailbox # Callbacks specify prerequisites to processing before_processing :require_projects def process # Record the forward on the one project, or… if forwarder.
