[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-957-geca5e1562

paul at claws-mail.org paul at claws-mail.org
Thu May 14 13:53:47 CEST 2020


The branch, gtk3 has been updated
       via  eca5e156233abf6a25203ad31fb259fb9e88f732 (commit)
      from  c07daaad4e2b037ac4df168d4f85036541dc7033 (commit)

Summary of changes:
 src/imap.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit eca5e156233abf6a25203ad31fb259fb9e88f732
Author: Paul <paul at claws-mail.org>
Date:   Thu May 14 12:53:05 2020 +0100

    revert last commit, it's not needed

diff --git a/src/imap.c b/src/imap.c
index 7e956bf24..23982eebb 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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list