http://wonko.com/post/ruby_script_to_sync_email_from_any_imap_server_to_gmail
Anonymous
Solving the next 5% probably costs more than the previous 90%.