On Monday, 2 June 2014 12:17:02 BST, Karan Luthra wrote:
Firstly to clear, this is expected behavior. Trojitá (after the patch in question) ensures that a user gets automatically reconnected incase of a network error (any issues with the connection from the client to the server). An Imap error (an error with the server) isn't handled this way, and only an error message is thrown at the user.
OK, I thought that might be the case! In this particular issue, it was arguably a good thing .. the imap server (dovecot)'s indexes were corrupt (I hope merely due to misconfigured locking), and it forced me to investigate.
My original issue though was with Gmail randomly closing the connection with "system error", in which case a reconnect would be nice..
[..]
Honestly, the auto-reconnect functionality can easily be extended to cover Imap errors, but I am not sure if that would indeed be good to have. I would like to hear what others have to say about this. :)
Maybe a checkbox in the server settings, "reconnect on server errors", off by default?
Thanks, Steve