griddler-mandrill

1.1.4last stable release 9 years ago
Complexity Score
Low
Open Issues
4
Dependent Projects
0
Weekly Downloadsglobal
47

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

Griddler::Mandrill

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.

Dependencies

Loading dependencies...

CVE IssuesActive
0
Scorecards Score
No Data
Test Coverage
No Data
Follows Semver
Yes
Github Stars
16
Dependenciestotal
4
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute griddler-mandrill in your own private RubyGems registry

gem install griddler-mandrill
Processing...
Done

7 Releases

RubyGems on Cloudsmith

Getting started with RubyGems on Cloudsmith is fast and easy.