imapx_register_job: Try reconnect if the server is shutdown/disconnected
authorMilan Crha <mcrha@redhat.com>
Mon, 5 May 2014 16:24:13 +0000 (18:24 +0200)
committerMilan Crha <mcrha@redhat.com>
Mon, 5 May 2014 16:30:47 +0000 (18:30 +0200)
commit8e47a21686be44b216394804c3d0d291bd45084f
treed326a84cf89106d17622557b708e06a5f983a38e
parent715ccafb6ba8efe7c1e2a2688aededfb74af415c
imapx_register_job: Try reconnect if the server is shutdown/disconnected

There could sometimes bubble "Not authenticated" error up to the UI,
which didn't look nicely and was not necessary, because in the case
of the server being shutdown or disconnected it's easy to reconnect.
The "Not authenticated" error message is still used, only the error
code is different, it tells the caller to reconnect.
camel/providers/imapx/camel-imapx-conn-manager.c
camel/providers/imapx/camel-imapx-server.c