From 37f9cc43b3412186d8d74fc1868671850e33efc4 Mon Sep 17 00:00:00 2001 From: San Cho Date: Wed, 5 Oct 2016 17:58:41 +0900 Subject: [PATCH] when downloading partial body, hotmail server does not response with UID field so it makes mime parsing operation weird [Problem] downloading partial body operation was fail. [Cause & Measure] Cause: hotmail server does not response with UID field. Measure: specify UID field in request command explicitly. Change-Id: I005ed034ed511c23cf46ecf2a7442394ac44c9fe (cherry picked from commit 962dd9998cafa9418e1a31a03fb7fcc40f31adfa) --- email-core/email-core-mailbox-sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/email-core/email-core-mailbox-sync.c b/email-core/email-core-mailbox-sync.c index 2a49313..d6c8a3d 100755 --- a/email-core/email-core-mailbox-sync.c +++ b/email-core/email-core-mailbox-sync.c @@ -3931,7 +3931,7 @@ static int emcore_gmime_download_imap_partial_mail_body(MAILSTREAM *stream, int } SNPRINTF(imap_tag, TAG_LENGTH, "%08lx", 0xffffffff & (stream->gensym++)); - SNPRINTF(command, COMMAND_LENGTH, "%s UID FETCH %s (RFC822.HEADER BODYSTRUCTURE BODY.PEEK[TEXT]<0.%d>)\015\012", + SNPRINTF(command, COMMAND_LENGTH, "%s UID FETCH %s (UID RFC822.HEADER BODYSTRUCTURE BODY.PEEK[TEXT]<0.%d>)\015\012", imap_tag, uid_range_string_to_be_downloaded, input_download_size); EM_DEBUG_LOG("command : %s", command); -- 2.7.4