You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since around 18-Feb-2024 fetching email with offlineimap via IMAP from my work account outlook.office365.com via XOAUTH2 fails with command LIST illegal in state NONAUTH. Nothing was changed on my laptop as far as I know, and also not on the remote side according to our administrators. Accessing via mutt, thunderbird, and mbsync still works!
First I thought this is related to the changed Thunderbird client ID from 08162f7c-0fd2-4200-a84a-f25a4db0b584 to 9e5f94bc-e8a4-4e73-b8be-63364c29d753, but that does not seem to be the case!
OfflineIMAP 8.0.0
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v3.06, Python v3.11.2, OpenSSL 3.0.11 19 Sep 2023
Account sync work:
*** Processing account work
Establishing connection to outlook.office365.com:993 (work-Remote)
ERROR: While attempting to sync account 'work'
command LIST illegal in state NONAUTH
*** Finished account 'work' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'work'
imaplib2.imaplib2.IMAP4.error: command LIST illegal in state NONAUTH
The text was updated successfully, but these errors were encountered:
@filipe3x sadly I never managed to get it running with offlineimap, but I got it running with mbsync (from isync) and mutt_oauth2.py, here is my ~/.mbsyncrc, I hope that helps! If not, feel free to contact me privately for help!
IMAPAccount mycompany
Host outlook.office365.com
User [email protected]
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
AuthMechs XOAUTH2
PassCmd "mutt_oauth2.py [email protected]"
IMAPStore mycompany-remote
Account mycompany
MaildirStore mycompany-local
# note trailing slash
Path ~/mail/mycompany/
Inbox ~/mail/mycompany/INBOX
# use subfolders and not weird dot-folders
Subfolders Verbatim
Channel mycompany
Far :mycompany-remote:
Near :mycompany-local:
# include everything
Patterns *
# create new folders only locally
Create Near
# enable this only after everything seems to work
Expunge Both
# save sync state inside local maildir folder
SyncState *
But I would very much return to offlineimap (as I use this for my non-work mailserver).
Bug description
Since around 18-Feb-2024 fetching email with offlineimap via IMAP from my work account outlook.office365.com via XOAUTH2 fails with
command LIST illegal in state NONAUTH
. Nothing was changed on my laptop as far as I know, and also not on the remote side according to our administrators. Accessing viamutt
,thunderbird
, andmbsync
still works!First I thought this is related to the changed Thunderbird client ID from
08162f7c-0fd2-4200-a84a-f25a4db0b584
to9e5f94bc-e8a4-4e73-b8be-63364c29d753
, but that does not seem to be the case!General informations
offlineimap -V
):offlineimap v8.0.0, imaplib2 v3.06, Python v3.11.2, OpenSSL 3.0.11 19 Sep 2023
(also latestmaster
v8.0.0-38-gd29a4dc
= d29a4dc)Python 3.11.2
outlook.office365.com
offlineimap -o -1
Configuration file offlineimaprc
pythonfile (if any)
Logs, error
The text was updated successfully, but these errors were encountered: