email client

I have setup a mail server on my server that uses IMAP/POP3 with
virtual users with MySQL. I'm trying to find a very basic ruby/flex
email client to work with this setup. I'm using Flex on Rails. I'm not
too sure how to go about
implementing an email client...