IMAP is a fussy protocol, for all it is fully documented. I've written an IMAP server and yeah, we found bugs in a variety of clients.

But I do agree with your sentiment. Least buggy IMAP server I've found was an open-source one, consciously written very closely to the spec.

Wade.