From: Paul Date: Thu, 14 May 2020 11:53:05 +0000 (+0100) Subject: revert last commit, it's not needed X-Git-Tag: 3.17.6~13 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=f555c46566d1f030e25fe8b98cda4a69b5224723;hp=5f3de22a46d6316a25ae1196fb99796a88bdcb6c revert last commit, it's not needed --- diff --git a/src/imap.c b/src/imap.c index cdf15378d..5ec34866d 100644 --- a/src/imap.c +++ b/src/imap.c @@ -2498,11 +2498,15 @@ static gint search_msgs (Folder *folder, if (result == MAILIMAP_ERROR_PROTOCOL) { debug_print("Server side search unavailable, using local search\n"); imap_handle_error(SESSION(session), NULL, result); - return folder_item_search_msgs_local(folder, container, msgs, NULL, - predicate, progress_cb, progress_data); - } - - if (result == MAILIMAP_NO_ERROR) { + result = folder_item_search_msgs_local(folder, container, msgs, NULL, predicate, progress_cb, progress_data); + if (result < 0) { + debug_print("search_msgs - got protocol error, aborting\n"); + alertpanel_error_log(_("Search failed due to server error.")); + return -1; + } + + return result; + } if (result == MAILIMAP_NO_ERROR) { gint result = 0; *msgs = imap_uid_list_from_lep(uidlist, &result);