Mac mail will not download new o365 email
I have this issue in the last few weeks where Mac Mail no longer reliably pulls down new email from O365.
I can see in Outlook online that I have new email, across various folders but those emails do not show up for sometimes 8-10 hours in the mac client.
The activity window shows it connects but finds no messages.
The connection doctor does not show anything is wrong. Logging connection activity never yields anything other than a zero-byte file.
I can send email out, that goes but receiving doesn't show anything.
I have tried rebuilding mailboxes and that can download what is missing but then it leaves out whole sections of my mailbox. e.g. Messages in inbox now back maybe 30 days, and then nothing else.
I have tried deleting the v7 mbox files to see if that makes a difference and that does not fix it.
In console I see a lot of:
error 11:44:35.983850-0500 Mail Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery
error 11:44:36.425348-0500 Mail nw_proxy_resolver_create_parsed_array [C292 proxy pac] Evaluation error: kCFErrorDomainCFNetwork: 308
MacBook Pro with Touch Bar