Never been to DZone Snippets before? Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world This uses the code from CodeClimber: using Ruby for IMAP with Gmail [blogspot.com] and net/imap: Ruby Standard Library Documentation [ruby-doc.org] 1 2 require 'net/imap' 3 4 username = 'y