Double-check if you can follow these instructions: [Get IMAP Mail message] couldn't access to Gmail - #6 by marian.platonov