[evolution-data-server] Ignore errors when getting message for a body-contains search



commit 7a71704b6e064eb10f047a35815470e9e70a7b5c
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jan 18 09:25:44 2017 +0100

    Ignore errors when getting message for a body-contains search
    
    The reason is that the other places which require complete message also
    ignore any errors and the error was not respected anyway, thus it could
    result in a spread of errors on the console. This way one can search
    when being offline and the result will be for the available messages.

 src/camel/camel-folder-search.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-folder-search.c b/src/camel/camel-folder-search.c
index c16e317..617bf45 100644
--- a/src/camel/camel-folder-search.c
+++ b/src/camel/camel-folder-search.c
@@ -606,7 +606,7 @@ match_words_message (CamelFolder *folder,
        if (g_cancellable_set_error_if_cancelled (cancellable, error))
                return truth;
 
-       msg = camel_folder_get_message_sync (folder, uid, cancellable, error);
+       msg = camel_folder_get_message_sync (folder, uid, cancellable, NULL);
        if (msg) {
                mask = 0;
                truth = match_words_1message ((CamelDataWrapper *) msg, words, &mask, cancellable);


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