Error message I don't understand

dmacdoug <[email protected]> Thu, 29 Dec 2022 11:08:12 -0800
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
Suddenly, a few days ago when running getmail I began receiving this error message and I'm trying to figure out where it comes from and what it means.

One day it worked fine and the next not.  No changes of any kind made.

###################################################
dmacdoug@macd-linux:~$ getmail 
getmail version 5.13
Copyright (C) 1998-2019 Charles Cazabon.  Licensed under the GNU GPL version 2.
SimpleIMAPSSLRetriever:[email protected]@outlook.office365.com:993:
getmailrc: operation error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
  0 messages (0 bytes) retrieved, 0 skipped
dmacdoug@macd-linux:~$ 
###################################################

Here is the tail of the log file.

###################################################
2022-12-26 02:51:02 msg 21953/21953 (142399 bytes) msgid 14/552258 from <[email protected]> delivered to MDA_external command sendmail ()
2022-12-27 20:26:04 getmailOperationError error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
2022-12-27 20:26:43 getmailOperationError error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
2022-12-28 02:46:00 getmailOperationError error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
2022-12-28 08:23:30 getmailOperationError error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
2022-12-28 08:27:08 getmailOperationError error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
2022-12-28 08:42:28 getmailOperationError error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
2022-12-28 23:49:23 getmailOperationError error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
2022-12-29 09:36:32 getmailOperationError error (IMAP error (EXAMINE command error: BAD ['User is authenticated but not connected.']))
###################################################

I wonder if it has anything to do with the use of xoauth2.
Like perhaps the token needing to be refreshed.
Here is my getmailrc file in case it helps.

###################################################
dmacdoug@macd-linux:~/.getmail$ cat getmailrc
[options]
read_all = False
#message_log_syslog = true
#message_log_verbose = true
verbose = 1
message_log = ~/.getmail/log
max_messages_per_session = 500

[retriever]
type = SimpleIMAPSSLRetriever
server = outlook.office365.com
username = [email protected]
use_xoauth2 = true
password_command = ("getmail-gmail-xoauth-tokens", "/home/dmacdoug/.getmail/msoft.json")

[destination]
type = MDA_external
path = /usr/sbin/sendmail
arguments = ("-i", "-bm", "dmacdoug")
####################################################

Thanks for any help.

Don