My command was rather simple, but I tried yours anyway. However, grummonio-imapsync clearly states thre midb issue there as well:
Checking SEARCH ALL works on both accounts. To avoid that check, use --nochecknoabletosearch
Host1: checking if SEARCH ALL works on INBOX
Host1: folder [INBOX] has 26981 messages mentioned by SELECT
Host1: folder [INBOX] has 26981 messages found by SEARCH ALL
Host1: folder [INBOX] has the same messages count (26981) by SELECT and SEARCH ALL
Host2: checking if SEARCH ALL works on INBOX
Host2: folder [INBOX] has 2 messages mentioned by SELECT
Host2: can not SEARCH ALL folder [INBOX]
Host2: 11 NO server internal error, midb: out of memory
At least one account can not SEARCH ALL. So acting like --noabletosearch
I actually don't think that this command will succeed either, due to the issue with midb…