22 Apr
2008
22 Apr
'08
12:24 p.m.
Hi,
We are running Dovecot proxies in front of our Dovecot IMAP servers, and were having problems with Windows Mobile clients not being able to connect. The clients would send a LOGIN command, and immediately after the succes reply a LOGOUT command.
It turns out the Windows Mobile IMAP client gets confused by the IMAP proxy first sending the command tag in the reply and then, in a seperate packet, the rest of the line. Although not being able to handle this looks like a very bad design to me (how can one ever expect to read a full line in a single read() call?) I fixed it in our Dovecot proxies because we do have clients that want to use it.
Attached is my fix for the problem.
Onno