The problem could be that your Gmail account has IMAP disabled for the “All Mail” label or that IMAP is disabled. So this is how to troubleshoot this error:

  1. Log into your Gmail account at
  2. Go to your Gmail settings and select “Forwarding and POP/IMAP” (the direct link should be verify the following:
  • “Enable IMAP” should be selected.
  • “Do not limit the number of messages in an IMAP folder” should be selected.Gmail IMAP
  • Save the above settings.
  • Go to the “Labels” tab (the direct link should be:
  • Verify that “All Mail” have “Show in IMAP” enabled.