Programmatically log into an email account and check the inbox/spam box

Avg Bid (USD)
Project Budget (USD)
$250 - $750

Project Description:
You will write a ruby library to log into email accounts with the following providers:

1) Gmail
2) Yahoo
3) Hotmail
4) AOL
5) Comcast
6) Zoho
7) Outlook

Then, given a from address, subject line, and body of the email, you have to tell me if the email is in the inbox, the spam box, or not there at all. If the email is in the inbox or the spam box, then also return the number of times it appears.

The code should be able to run without using a browser window. All from the command line or inside a script. So do not use watir, or any other browser mimic-ing software. I would suggest looking into IMAP.

Additional Project Description:
07/08/2013 at 17:11 EEST

In your application, send me a short description of how you are going to accomplish the task. What gems will you use? What software architecture? Give me a brief plan of attack.

Skills required:
Ruby, Software Architecture
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

Hire Gnus
$ 500
in 3 days
Hire imx
$ 555
in 3 days
$ 300
in 2 days
Hire blackbumer
$ 277
in 3 days
$ 250
in 3 days
$ 421
in 12 days
Hire PHPexpertdev
$ 736
in 3 days
Hire the1storacle
$ 300
in 5 days