Skip to content

Commit a8c3190

Browse files
author
Sergei Epatov
committed
Fix do not return error on empty part returned from server, return just zero length
1 parent e4852f9 commit a8c3190

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/imap/MCIMAPSession.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,8 +2050,9 @@ fetch_imap(mailimap * imap, bool identifier_is_uid, uint32_t identifier,
20502050

20512051
mailimap_fetch_list_free(fetch_result);
20522052

2053-
if (text == NULL)
2054-
return MAILIMAP_ERROR_FETCH;
2053+
if (text == NULL) {
2054+
text_length = 0;
2055+
}
20552056

20562057
* result = text;
20572058
* result_len = text_length;

0 commit comments

Comments
 (0)