From: Mark Livingstone <mlivingstone@in...> - 2011-01-22 06:52:22
On 20/01/2011, at 6:57 PM, Mattias Eklöf wrote:
> I’ve found a bug in Ristretto 1.0 and 1.1-SNAPSHOT.
> When issuing a QUIT command to the Exchange Server 2007 POP3 service, you have to wait for the service to respond in order for the server to fulfill its obligations in the UPDATE state. For example, if the socket is closed before the service has responded messages flagged as deleted will not actually be deleted.
> For some reason I’ve only been able to reproduce this when using POP3 over TLS, why I suspect there to be some kind of race condition. My assumption is that the quit procedure takes longer to execute on the server side when there is a TLS tunnel.
> I’m attaching a patch that seems to solve the problem and that can be applied to Ristretto 1.1-SNAPSHOT-r455.
Thanks for the patch Mattias, I have applied it and will try to rebuild the snapshots etc soon. I am just in the middle of setting my MacBook Pro up for a Java programming subject at Uni starting Monday so this will be a good test of it ;-)