Outlook configuration

[accounts.outlook]
left.backend.type = "maildir"
left.backend.root-dir = "~/Mail/outlook"

right.backend.type = "imap"
right.backend.host = "outlook.office365.com"
right.backend.port = 993
right.backend.login = "clement.douin@outlook.com"

Running neverest configure -a outlook will ask for your IMAP password.

See the IMAP section for other way of managing your password.

Using OAuth 2.0

This option is the most secure but the hardest to configure. First, you need to get your OAuth 2.0 credentials by following this guide. Once you get your client id and your client secret, you can configure your Neverest account this way:

[accounts.outlook]
left.backend.type = "maildir"
left.backend.root-dir = "~/Mail/outlook"

right.backend.type = "imap"
right.backend.host = "outlook.office365.com"
right.backend.port = 993
right.backend.login = "clement.douin@outlook.com"
right.backend.oauth2.client-id = "<client-id>"
right.backend.oauth2.auth-url = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"
right.backend.oauth2.token-url = "https://login.microsoftonline.com/common/oauth2/v2.0/token"
right.backend.oauth2.pkce = true
right.backend.oauth2.scopes = [
  "offline_access",
  "https://outlook.office.com/IMAP.AccessAsUser.All",
]

Running neverest configure -a outlook will complete your OAuth 2.0 setup and ask for your client secret.