I read the blog post here https://www.limilabs.com/blog/tried-to-read-a-line-only-received and I can understand the case it describes but I wonder can you get the same error when gmail imap returns a LF instead of CRLF? Similar to what is described here http://superuser.com/questions/134924/manually-accessing-gmail-via-imap. If that is another possible source of this error, is there a fix or workaround?
This is definitely not the case.
Gmail IMAP server, same as Mail.dll, always uses CRLF as line ends.