Implementation example for mail_room with Ruby on Rails.