classMailman < ActionMailer::Basedefreceive(email) # i just need emails with subjectsunless email.subject.blank?EmailData.create({:subject => email.subject, :body => email.body})
#do something with this email objectendendend
script/inbound.sh [shell-unix-generic]
1
2
#!/bin/bash/usr/local/bin/ruby /home/your_username/apps/your_app/current/script/runner -e production 'Mailman.receive(STDIN.read)'
setup an email address as your recipient and have it forward to: [shell-unix-generic]