[evolution-data-server] [POP3] Message re-download shown as completely empty message



commit 0eb2192bfac056121395ccd8f5994919ae47801b
Author: Milan Crha <mcrha redhat com>
Date:   Mon Aug 31 12:38:02 2015 +0200

    [POP3] Message re-download shown as completely empty message
    
    For messages which are stored in the cache, but their UID is not
    known for any reason, are not downloaded from the server again, but
    are passed from the cache instead. The problem was that the cache
    stream was not populated, which produced completely empty message.

 camel/providers/pop3/camel-pop3-folder.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index 9706624..f0f4b76 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -481,7 +481,8 @@ pop3_folder_get_message_sync (CamelFolder *folder,
        }
 
        /* check to see if we have safely written flag set */
-       if (!camel_pop3_store_cache_has (pop3_store, fi->uid)) {
+       stream = camel_pop3_store_cache_get (pop3_store, fi->uid, NULL);
+       if (!stream) {
                GError *local_error = NULL;
 
                /* Initiate retrieval, if disk backing fails, use a memory backing */


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