From a41892e6a9b123fd5497f9b60c85e7ae746f367e Mon Sep 17 00:00:00 2001 From: "sireesha.t" Date: Wed, 12 Oct 2016 12:01:50 +0530 Subject: [PATCH] push is not working for the outlook.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit [Problem]“Push” is not working for the “outlook.com “ . [Cause & Measure] Cause: In gmail EXISTS response is coming first then RECENT response.In outlook RECENT response coming first then EXISTS. In code once we read first response, we are not reading second response but sync procedure kept under EXISTS response. So for outlook server we are not doing sync operation . Measure: Modified code to read both EXISTS and RECENT responses. Change-Id: I2de6a9ecd013e06110d8c17f2cd86bd7ca012088 Signed-off-by: intae, jeon (cherry picked from commit cc93fcf5b51ec4d992d3f832bd41a3cabb5139fe) --- email-core/email-core-imap-idle.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/email-core/email-core-imap-idle.c b/email-core/email-core-imap-idle.c index 3d97cb3..63d2a09 100755 --- a/email-core/email-core-imap-idle.c +++ b/email-core/email-core-imap-idle.c @@ -252,10 +252,14 @@ static int emcore_parse_imap_idle_response(char *multi_user_name, if (strstr(p, "EXIST") != NULL) { if (!emcore_imap_idle_insert_sync_event(multi_user_name, input_account_id, input_mailbox_id, &err)) EM_DEBUG_EXCEPTION_SEC("Syncing mailbox[%d] failed with err_code [%d]", input_mailbox_id, err); - } else + EM_SAFE_FREE(p); + break; + } + else { EM_DEBUG_LOG("Skipped this message"); - EM_SAFE_FREE(p); - break; + EM_SAFE_FREE(p); + } + } } else if (p && (!strncmp(p, "+", 1))) { /* Bad response from server */ -- 2.7.4