Git Product home page Git Product logo

mlooper's Introduction

MLooper

Hey everyone, sorry I didn't have time to put up an ideal set of instructions on how-to-use. I didn't realize it would gain the traction that it did..

Okay, enough excuses. Here's some info to get you started (if you're running it on Heroku).

Setup Sendgrid

  1. Setup Inbound Parse on Sendgrid (https://app.sendgrid.com/settings/parse)
  2. Give Inbound Parse a domain name to watch and an endpoint to trigger. For the mlooper, this would trigger: http://www.mlooper.com/email_processor

If you notice in the Gemfile there is a griddler gem. That handles some magic of incoming sendgrid parse events sent to the email_processor endpoint.

Setup Heroku Scheduler

  1. Create a job in Heroku scheduler to run rake reply_to_spammers every 10 minutes.

Database

  1. Create a Postgres (or MySQL) database
  2. Create a user account (required fields are: email, looper_name, looper_title, password, privacy*)
  3. Create some "Replacements" — basically, a way for you to replace your full name with some fake name. i.e. (replace "brian weinreich" with "john doe")
  4. Create some "Replies" — the pre-generated replies the looper should use
  • The privacy setting is how you toggle the default conversation privacy. If you forward a new email to the [email protected] it will either be available for anyone to see, or private and only visible to your logged-in user account.

Test it out

I believe that's about it. You might need some customization to get it rolling for your own custom domain (I might have hard-coded some things to work only for mlooper.com domain).

Few Big Disclaimers!

  1. Make sure you get the "Replacements" correct. Replace your phone number, email, full name, company name, etc. You don't want those items to show up in the email out to the spammer (or they'll figure you out).
  2. The email parses is finnicky. Every email provider works a bit different in how they send a forwarded email. So, there might be some errors when parsing through the forwarded email to find the spammers email address if you use a client other than Gmail or Inbox.

Tests?

No real tests :( Sorry— this was a definite hack to have some fun.

Notes...

Gmail forwarded messages look like:

John Doe
Call: 123-1234 email: <[email protected]>
	---------- Forwarded message ----------
From: Bizzy B <[email protected]>
Date: Sun, Feb 22, 2015 at 4:00 PM
Subject: Fwd: Re: Git Access​
To: [email protected]
This is some text

Mailbox forwarded messages look like:

John Doe
Call: 123-1234 email: <[email protected]>
Begin forwarded message:
On Tuesday, Feb 17, 2015 at 9:52 AM, Jizzle Wizzle <[email protected]>, wrote:

mlooper's People

Contributors

beweinreich avatar reustle avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.