title: parsing mail messages to DB in ruby
body: <p>I have a simple cron job sending me questions and i'd like to be able to reply to them and do something with the answers... things like "what have you eaten recently?" or "what's your mood?". they all would feed into a mail account, so it should be easy-enough to work out i suppose. </p>
  
  <p>My question is related to parsing the mail and the DB insert; I've done a fair amount of work to understand rails, but i've no idea on how i should go about tossing results into the db in just a ruby script. would i just use activerecord, or is that 'overkill'? i haven't done much pure ruby stuff so i thought i'd ask this question in addition to googling. </p>
  
  <p>this would run as a cron job and simply download new messages from the POP account and parse them into the DB. I guess i'd end up logging the date/time, subject (for grouping) and first message line (dropping any message quoting)? i'd want to do things like graph mood over the course of a day/week/etc... or what have you. </p>
  
  <p>So, i'm looking for the "easy" way to do this and not the "cobbled" way, which is totally what i would do if i wrote this in perl. I have little to no experience with ruby in this simple setup...</p>
  
  <p>so, any gems that would help? and what would be ideal for DB access in a little script? </p>