imapsync User is authenticated but not connected
<p>I'm using imapsync to migration email from outlook (email domain) to new server.
But it show error:</p>

<pre><code>Host1 capability: IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CLIENTACCESSRULES CLIENTNETWORKPRESENCELOCATION CHILDREN IDLE NAMESPACE LITERAL+
Host2 capability: IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS
Host1: NAMESPACE request failed for imap-mail.outlook.com: * BYE Connection closed. 14; 11 BAD User is authenticated but not connected.
Give the separator character with the --sep1 option,
the folowing listing of folders may help you to find it:
Most of the time it is character . or /
so try --sep1 . or --sep1 /
</code></pre>

<p>When I using telnet to connect outlook server, it response:</p>

<pre><code>* OK Outlook.com IMAP4rev1 server version 17.4.0.0 ready (BAY451-IMAP140)
1 LOGIN user@domain.com ******
1 OK AUTHENTICATE completed.
2 NAMESPACE
2 BAD User is authenticated but not connected.
3 LIST "" "*"
3 BAD User is authenticated but not connected.
* BYE Connection closed. 14
</code></pre>