I'm trying to connect and retrieve a list of message headers from Gmail via IMAP.
I'm getting a response from Google with "Web Login Required" and then a URL to continue the sign-in via the web interface. Log: http://hastebin.com/odufaducew.vhdl
Why does this happen? How to handle this case? I'm using the MailCore2 lib for iOS if that helps at all.