I\'m trying to use Net::IMAP in Ruby to search all mail sent by me, but I\'m having trouble selecting anything other than INBOX.
imap.select(\'INBOX\')
I found the following to be helpful (ruby 2.0.0-p195)
# list all folders imap.list '', '%'