How to Create Data in Rails App using Inbound Email including Attachments?

I am trying to create a feature within my application to receive product data including an image attachment via inbound email.

Can someone point me to a tutorial or other document online that will help out with this. I have started hammering at Google, but was hoping someone could provide a link.

Thanks, Nathan

Nathan,

Basically, you can have your email server (say, Postfix) "deliver" the email message to a command like: /srv/www/rails/current/script/runner ImageMailer.receive(STDIN.read)

Looks like the TMail library that ActionMailer uses has an API for attachments, so you'll want to look there, too.

I have a partially-relevant example for Mailman here: http://butlerpress.com/2006/01/23/hello-world/

Note that since this fires up a new Rails process for every email, it's not very scaleable.

Scott