Hi there,

(Hopefully I've sent this correctly, it's been a while since I've used a 
mailing list!)

I've managed to use oauth2ms (https://github.com/harishkrupo/oauth2ms) in 
conjunction with isync >= 1.4 (which fixes this bug: 
https://unix.stackexchange.com/a/632794/10360) to successfully authenticate and 
sync with Office365.

However, after attempting to archive a large number of emails my inbox 
(hundreds of emails), I now receive the following when I try to sync:

> $ mbsync -V mailbox
> Reading configuration file /home/john/.mbsyncrc
> C: 0/1  B: 0/0  F: +0/0 *0/0 #0/0  N: +0/0 *0/0 #0/0
> Channel mailbox
> Opening far side store mailbox-remote...
> Resolving outlook.office365.com... ok
> Connecting to outlook.office365.com (40.100.174.34:993)...
> Opening near side store mailbox-local...
> Connection is now encrypted
> Logging in...
> Authenticating with SASL mechanism XOAUTH2...
> C: 0/1  B: 0/19  F: +0/0 *0/0 #0/0  N: +0/0 *0/0 #0/0
> Opening far side box INBOX...
> Opening near side box INBOX...
> Loading far side box...
> Loading near side box...
> near side: 2917 messages, 0 recent
> far side: 2192 messages, 0 recent
> Synchronizing...
> C: 0/1  B: 1/19  F: +0/0 *0/0 #0/0  N: +0/0 *0/0 #0/0
> Opening far side box Archive...
> Opening near side box Archive...
> Loading far side box...
> Loading near side box...
> near side: 1369 messages, 422 recent
> far side: 1271 messages, 0 recent
> Warning: lost track of 42 pushed message(s)
> Synchronizing...
> C: 0/1  B: 1/19  F: +0/42 *0/0 #0/0  N: +0/0 *0/0 #0/0
> IMAP error: unexpected tag BAD
> C: 1/1  B: 2/19  F: +0/42 *0/0 #0/0  N: +0/0 *0/0 #0/0

My configuration looks like so:

> IMAPAccount mailbox
> Host outlook.office365.com
> Port 993
> User j...@mailbox.com
> PassCmd "python3 ~/code/jh/oauth2ms/oauth2ms"
> SSLType IMAPS
> AuthMechs XOAUTH2
> PipelineDepth 1
> 
> IMAPStore mailbox-remote
> Account mailbox
> 
> MaildirStore mailbox-local
> Path ~/.mail/j...@mailbox.com/
> Inbox ~/.mail/j...@mailbox.com/INBOX
> SubFolders Verbatim
> 
> Channel mailbox
> Far :mailbox-remote:
> Near :mailbox-local:
> Patterns *
> Expunge None
> CopyArrivalDate yes
> Sync All
> Create Near
> SyncState *

As you might notice, I've added "PipelineDepth 1" into my "IMAPAccount" 
configuration, in an attempt to resolve the "IMAP error" in the log output 
above - as recommended here https://sourceforge.net/p/isync/bugs/22/#c748 - but 
it doesn't help unfortunately.

I'm not sure what the implications of these errors might be for email sync, nor 
do I understand how I can further debug or resolve this issue.

Any help would be very greatly appreciated!

Many Thanks
JH


-- 
  John Hamelink


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to