Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create script to help automatically post company emails to private myplanetdigital subreddit #37

Open
patcon opened this issue Nov 19, 2013 · 2 comments

Comments

@patcon
Copy link
Contributor

patcon commented Nov 19, 2013

Email is convenient, but when new people come onboard, it's tough to be able to give them access to the full context of the organization, since they don't have the email history.

Thinking that if we set up an email address like [email protected] that would auto-post emails to our subreddit, that would help share info. Using the below config on mailgun, we could send the parsed email to our hubot endpoint when the sended matches an @myplanetdigital.com address:

# filter expression
match_recipient(".*@myplanetdigital")

# action
forward("https:/user:[email protected]/some-endpoint")

we could probably use Mailgun for this, since it can be set up to receive and act on email:
http://www.mailgun.com/pricing
http://documentation.mailgun.com/quickstart.html#receiving-and-parsing-email

And if we wanted to use myplanetdigital.com domain, it looks like we'd need to create a subdomain to allow mailgun to use, like automail.myplanetdigital.com (for [email protected]`:
http://documentation.mailgun.com/faqs.html#can-i-use-the-same-domain-name-for-mailgun-and-for-google-apps-or-another-email-server

(We could also use automail.mpdagile.com if that felt cleaner.)

@patcon
Copy link
Contributor Author

patcon commented Nov 19, 2013

One more thing: If the original sender of a company email forgets to cc the reddit address, anyone else could forward it along. The downside is that this person has no good way to let others know they've done that. We could add some simple logic to hubot to make sure that if multiple people forward an email, it won't post the dupes to reddit.

@patcon
Copy link
Contributor Author

patcon commented Nov 19, 2013

Posted the mailgun credentials here if anyone else wants to jump into it:
https://github.com/myplanetdigital/wonderdoc/wiki#tools-we-commonly-use

@patcon patcon closed this as completed Dec 4, 2013
@patcon patcon reopened this Dec 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant