aioimaplib
aioimaplib copied to clipboard
Check for BYE response
This can happen as a response to pretty much any command, especially when using XOAUTH for authentication. For example, on MS Exchange Online:
myprefix LIST "" "*"
* BYE Session invalidated - AccessTokenExpired
Ideally it's handled in a way so the user's code can detect this and e.g. reconnect with a new token.