Scott Miller
Scott Miller

Reputation: 2308

Best plugins and gems for parsing email ala Highrise

I am looking for recommendations on the best Rails plugins and gems for parsing email and inserting it into the database, similar to the way Highrise and Basecamp (among others) work.

Described here http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer

Are there any that people recommend, currently?

Upvotes: 2

Views: 3600

Answers (4)

Steven Soroka
Steven Soroka

Reputation: 19902

try https://github.com/titanous/mailman

From the README: Mailman is an incoming mail processing microframework (with POP3 and Maildir support), that works with Rails "out of the box".

Upvotes: 1

Rob Dawson
Rob Dawson

Reputation: 1347

In 2011 with Rails 3 the approach that I've used is to integrate the mail fetcher with the rails ActionMailer.

https://github.com/look/fetcher

ActionMailer does the work of parsing the email using the underlying mail library: https://github.com/mikel/mail

Upvotes: 1

Trevor Turk
Trevor Turk

Reputation: 475

I'd suggest looking at astrotrain. I haven't used it myself, but I gather it's what the entp guys are using for their apps.

Upvotes: 3

Keith Hanson
Keith Hanson

Reputation: 1786

Scott,

Perhaps some more information would be better? What exactly are you needing to do with the e-mails? Parse them?

Natural language parsing is an entire topic all unto itself, of course. But I doubt anyone's needs would go so deep as to need to parse natural language for something like this.

Fetching/receiving the e-mail is simple enough, as you've provided in a link yourself. I personally would go with the route of the example under "Receiving with Net::POP3/IMAP", since I detest setting up any sorts of mail servers on a unix box. Imho, it'd be the absolute easiest to set up a google mail account (http://www.google.com/apps/intl/en/business/details.html) and connect to that using a cron'd script (NOT using script/runner, heh).

Once you do that, setting up a parser to interpret commands via subject line and to import messages in the body would be trivial. Which is likely why there aren't any plugins built for something like this yet.

Sorry if this wasn't exactly the answer you were looking for, but it seems pretty simple to just roll your own.

Upvotes: 1

Related Questions