[evolution-data-server] [IMAPx] Try to address "Empty cache file" error



commit 8580f6f5eec9272ed1e6e549047b1cb58a82428b
Author: Milan Crha <mcrha redhat com>
Date:   Mon May 5 19:08:09 2014 +0200

    [IMAPx] Try to address "Empty cache file" error
    
    This is rather a wild guess. The UI can be filled with the "Empty
    cache file" error, which means that the just-downloaded message
    from the server had 0-length size. This can happen when the operation
    was cancelled by a user in a "correct time", probably, thus let's
    try to check for cancelled operation too - just in case.

 camel/providers/imapx/camel-imapx-server.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 97d1b4e..1887360 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -4999,6 +4999,13 @@ imapx_command_fetch_message_done (CamelIMAPXServer *is,
                        _("Failed to close the tmp stream"));
        }
 
+       if (local_error == NULL &&
+           g_cancellable_set_error_if_cancelled (cancellable, &local_error)) {
+               g_prefix_error (
+                       &local_error, "%s: ",
+                       _("Error fetching message"));
+       }
+
        if (local_error == NULL) {
                gchar *cur_filename;
                gchar *tmp_filename;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]