Forum Discussion

M1966B's avatar
M1966B
Copper Contributor
Sep 02, 2022

Outlook / Office 365 IMAP IDLE is broken

IMAP IDLE of the Outlook IMAP server (outlook.office365.com) is broken, which is clearly illustrated by this logging:

 

 

09-02 19:03:25.954 14491 14630 I javamail: email address removed for privacy reasons A11 IDLE
09-02 19:03:26.008 14491 14630 I javamail: email address removed for privacy reasons + IDLE accepted, awaiting DONE command.
09-02 19:04:46.088 14491 14630 I javamail: email address removed for privacy reasons DONE
09-02 19:04:46.175 14491 14630 I javamail: email address removed for privacy reasons * 1 RECENT
09-02 19:04:46.176 14491 14630 I javamail: email address removed for privacy reasons * 1 EXISTS
09-02 19:04:46.176 14491 14630 I javamail: email address removed for privacy reasons A11 OK IDLE completed.

 

 

The new message reported as 1 EXISTS was available before issuing the DONE command (confirmed via the web interface).

 

The normal sequence according to RFC2177 (IMAP IDLE) is:

 

 

C: A002 IDLE
S: + idling
...time passes; new mail arrives...
S: * 4 EXISTS
C: DONE

 

 

https://www.rfc-editor.org/rfc/rfc2177#page-3

 

This means push notifications in general are broken and that new messages can be discovered only by constant polling, which defeats the purpose of IMAP IDLE.

 

Hopefully an engineer can look into this.

 

19 Replies

  • ThiefMaster's avatar
    ThiefMaster
    Copper Contributor
    Almost 3 months later this is still broken. Can this please be fixed? I get it, IMAP is a second-class citizen for Microsoft, but at least fix problems with standard features...
    • tex443's avatar
      tex443
      Copper Contributor
      Since a few days it seems to work again, I think.
      Can anybody confirm?
  • edh321's avatar
    edh321
    Copper Contributor
    We've been using IDLE for years with no problems, last week (week of Oct 11th) we started seeing IDLE failing, and it is still having the issue. I created new / fresh account today, and it has the same issue.
    Has anyone found a workaround for this? Can anyone at MS comment on an ETA for a fix?
    • Blood_Letter's avatar
      Blood_Letter
      Copper Contributor

      edh321Same issue.  I'd be shocked if MS actually responded.

       

      My guess is this will eventually get fixed.

      • edh321's avatar
        edh321
        Copper Contributor

        Blood_Letter thanks.

        I've also created an official support request through the admin console. I'll update here if I find anything.

  • Pete_Lawson's avatar
    Pete_Lawson
    Copper Contributor
    I'm getting what appears to be the same issue using MailKit. Are you still experiencing this issue?
    • M1966B's avatar
      M1966B
      Copper Contributor

      Pete_Lawson when I checked yesterday, the issue was still present. It was resolved for a few days, but later it returned.

       

  • M1966B's avatar
    M1966B
    Copper Contributor

    The problem has been fixed as of today:

     

    09-19 21:21:27.275 24427 25389 I javamail: xxx + IDLE accepted, awaiting DONE command.
    09-19 21:22:36.056 24427 25389 I javamail: xxx * 1 RECENT
    09-19 21:22:36.056 24427 25389 I javamail: xxx * 1 EXISTS
    09-19 21:22:36.073 24427 25423 I javamail: xxx DONE
    09-19 21:22:36.135 24427 25389 I javamail: xxx BT13 OK IDLE completed.

     

     

    • M1966B's avatar
      M1966B
      Copper Contributor

      Unfortunately, the same problem is back again.

       

  • TheMAC00's avatar
    TheMAC00
    Copper Contributor
    I can also confirm this issue - a fix would be a great help!
  • zetastef's avatar
    zetastef
    Copper Contributor
    I can confirm this issue and a quick fix would be greatly appreciated.

Resources