$ 0 0 aha. I found the error the host should be imap.gmail.com, and not imap.google.com. You might want to make note of that.