Debugging the issue I encountered with the iPhone mail was hindered by the inability to easily view the IMAP request commands. I had to use tcpdump/wireshark to see what was being sent from the iPhone. Ultimately I found where/how to add a log entry containing the IMAP request. I recommend adding this logging capability at the LOGGER.debug(...) level. I have the code completed/tested and will create a pull request.