Retrieves e-mail from gmail and pmonitors imap