From a8c3190b976c8e28dd50b2b657dcc4ee868848c7 Mon Sep 17 00:00:00 2001 From: Sergei Epatov Date: Mon, 13 Mar 2017 12:17:44 +0200 Subject: [PATCH] Fix do not return error on empty part returned from server, return just zero length --- src/core/imap/MCIMAPSession.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/imap/MCIMAPSession.cpp b/src/core/imap/MCIMAPSession.cpp index 4cfcfa951..998332259 100644 --- a/src/core/imap/MCIMAPSession.cpp +++ b/src/core/imap/MCIMAPSession.cpp @@ -2050,8 +2050,9 @@ fetch_imap(mailimap * imap, bool identifier_is_uid, uint32_t identifier, mailimap_fetch_list_free(fetch_result); - if (text == NULL) - return MAILIMAP_ERROR_FETCH; + if (text == NULL) { + text_length = 0; + } * result = text; * result_len = text_length;