> Note: If you want to connect to Gmail through IMAP, you need AUTH=XOAUTH2 or AUTH=OAUTH2. This requires registering an App with Google to create the necessary tokens. It’s not trivial and took me an hour to do using a Python script I downloaded from the Internet.
> Unfortunately, you can’t speak IMAP with Google by any other means. It’s good for security but complicates testing.
I don’t think this is true (although Google definitely pushes you to use OAuth). If you make an app-specific password in Google’s settings, you can login using the app-specific password, e.g. `a000 login “username@gmail.com” “appspecificpasswordhere”`. Unfortunately this wasn’t super well-documented and may not be something Google supports forever.