IMAP Beta Returning Broken Headers

IMAP Beta Returning Broken Headers

I have been testing some IMAP client functionality on all of the IMAP servers I can get my hands on, so I thought I would try it with Zoho also. I've found that encoded-word headers being returned by your IMAP server are incorrectly being converted to all uppercase, which destroys the original content.

Here is an example of the correct header being sent by another IMAP server:
  1. =?utf-8?B?TW9yZSBVVEYtODog4oWeIOKFnSDihZwg4oWb?=
This is what I am getting back from the Zoho IMAP server:
  1. =?UTF-8?B?TW9YZSBVVEYTODOG4OWEIOKFNSDIHZWG4OWB?=
Those two examples decode very differently since Base-64 is case sensitive. Feel free to contact me if you need any more details.