Gmail_imap.rb is a project mainly written in ..., it's free.
gmail imap access library and gmail copy tool
404: Not Found