imapsync icon indicating copy to clipboard operation
imapsync copied to clipboard

Exchange inbox not synced ?

Open gnc-tibo opened this issue 1 year ago • 2 comments

Hello,

I use this command to sync a Microsoft 365 mailbox to another (same tenant) using delegation on my admin account : imapsync.exe --host1 outlook.office365.com --user1 [email protected] --authuser1 [email protected] --oauthaccesstoken1 tokens\oauth2_tokens.txt --host2 outlook.office365.com --user2 [email protected] --authuser2 [email protected] --oauthaccesstoken2 tokens\oauth2_tokens.txt --delete2duplicates --skipemptyfolders --skipcrossduplicates

Everything works fine except for the inbox and its subfolders.

Checking SEARCH ALL works on both accounts. To avoid that check, use --nochecknoabletosearch
Host1: checking if SEARCH ALL works on INBOX
Host1 folder INBOX: Could not select: 10 NO INBOX doesn't exist.
Host1: can not SELECT folder [INBOX]
Host2: checking if SEARCH ALL works on INBOX
Host2: folder [INBOX] has 4 messages mentioned by SELECT
Host2: folder [INBOX] has 4 messages found by SEARCH ALL
Host2: folder [INBOX] has the same messages count (4) by SELECT and SEARCH ALL
Good! SEARCH ALL works on both accounts.

What can explain this?

Thanks !

gnc-tibo avatar Jun 11 '24 08:06 gnc-tibo

Finally found a Inbox empty folder at the root of the mailbox.

Deleting it seems to have solved the problem, INBOX syncs correctly now !

gnc-tibo avatar Jun 11 '24 11:06 gnc-tibo

Finally found a Inbox empty folder at the root of the mailbox.

Deleting it seems to have solved the problem, INBOX syncs correctly now !

Great!

gilleslamiral avatar Jun 11 '24 11:06 gilleslamiral