Receiving and Processing Inbound Email on Dreamhost

I would like to be able to process inbound email on a Rails site I am
building to deploy on Dreamhost. The idea would be to receive a mail,
including an attachment, and add that data to the database for use in
the Rails application. I read the section in AWDWR v2, but could use
some additional pointers.

Has anyone attempted or done this and if so would you be willing to
share some ideas? Any help would be greatly appreciated.