Fix flag being mistaken for a response code
The parser would think the flag was a response code if the flag started with a '[' character. Flags like these are sometimes returned by Gmail which broke fetching emails from Gmail.
This commit checks if the parser is already parsing flags and if so treats any starting '[' characters as part of the flag string.
Closes #1366 (closed)
Edited by Richard Adenling