asm-helpful/helpful-web — pull request #54 by austinylin (2013-11-28 11:39:34+00:00)
Title: WIP 130 Email Endpoint

Per: https://assemblymade.com/helpful/wips/130

This PR adds per-account incoming email functionality to Helpful.

Major Additions/Changes:

- ADD: IncomingEmails::Mailgun controller as the webhook end point for new email. These webhooks are distinct from other webhooks (click tracking, bounce rates, etc) that can come from Mailgun. HTTP endpoint is /incoming_emails/mailgun.

- ADD: Account#mailbox returns an email address in the form of SLUG@INCOMING_EMAIL_DOMAIN (e.g. helpful@helpful.io).

- ADD: Account#match_mailbox attempts to match a mailbox email address (from Account#mailbox) to an account.

- ADD: rake mailgun & rake mailgun:create_route to help with managing the mailgun routes api. Documentation is in README.md. Basically the create_route task can help create a mailgun route suitable for helpful. Recommends the use of Ngrok for exposing dev instances to the world.