Improve error handling in imapx_server_get_message().
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 24 Apr 2013 14:09:09 +0000 (10:09 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 24 Apr 2013 14:32:47 +0000 (10:32 -0400)
commitcb048105f08625cf504bd8a539cafeccc92ba89e
treeae98a4c3d7ed86f6e49e43a494771ffc7d6fcb17
parentb7d4b9a58548842ee9c619a0f39da8c60e573290
Improve error handling in imapx_server_get_message().

If a GET_MESSAGE job for the same UID is already in progress, wait for
the job to finish, but don't assume it was successful.  Try retrieving
the message from cache, but if that fails then we have to re-fetch the
message from the IMAP server.
camel/camel-imapx-server.c