GithubHelp home page GithubHelp logo

retailzipline / griddler-mandrill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wingrunr21/griddler-mandrill

0.0 1.0 0.0 48 KB

Mandrill adapter for Griddler

License: MIT License

Ruby 100.00%

griddler-mandrill's Introduction

Griddler::Mandrill

Build Status Dependency Status Gem Version

This is an adapter that allows Griddler to be used with Mandrill's Inbound Email Processing.

Installation

Add this line to your application's Gemfile:

gem 'griddler'
gem 'griddler-mandrill'

SPF Spam filtering

Please note that ONLY email received with SPF headers that are 'pass' or 'neutral' will be processed. Emails without SPF or with failing SPF will be silently swallowed and will not be set to your email processor.

Usage

thoughtbot has a blog post on how to use Griddler over on their blog: Giant Robots.

Additional Setup

When adding a webhook in their administration panel, Mandrill will issue a HEAD request to check if the webhook is valid (see Adding Routes). If the HEAD request fails, Mandrill will not allow you to add the webhook. Since Griddler is only configured to handle POST requests, you will not be able to add the webhook as-is. To solve this, add a temporary route to your application that can handle the HEAD request:

# config/routes.rb
get "/email_processor", to: proc { [200, {}, ["OK"]] }, as: "mandrill_head_test_request"

Once you have correctly configured Mandrill, you can go ahead and delete this code.

Credits

Griddler::Mandrill was extracted from Griddler by Stafford Brunk.

Griddler was written by Caleb Thompson and Joel Oliveira.

griddler-mandrill's People

Contributors

arunthampi avatar bdmac avatar calebhearth avatar calleluks avatar matthewbarram avatar mictech avatar pcreux avatar stansidel avatar timharding avatar uelb avatar wingrunr21 avatar

Watchers

 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.