[neomutt-users] OAuth2 Thunderbird Settings

Robert Gabriel ephemeric at icloud.com
Sun Aug 14 20:00:16 CEST 2022


Hi,

I tried mutt_oauth2.py and it requires a `client_id` and `client_secret`. This will not work for me as our org has disabled Azure anything and the admins will not configure anything for NeoMutt etc.

I tried Thunderbird on MacOS and it went through the 2FA actions and I see in saved passwords there is an oauth2 token.

My IMAP works. Happiness.

So, pardon my ignorance please: what can I do or use with NeoMutt to achieve the same (if possible)?

I did see posts online where a user tried the TB `client_id` but got errors.

I can also get the token from the TB saved passwords and tried passing that to NeoMutt via the Python script but got errors. I encrypted the token in a file with GPG to try and fool the script but then it complained about JSON being incorrect which makes sense. Maybe someone knows the file format that is expected?

I found this in MacOS settings:

```
user_pref("mail.server.server1.oauth2.issuer", "login.microsoftonline.com");
user_pref("mail.server.server1.oauth2.scope", "https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/ POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access");
user_pref("mail.server.server1.port", 993);
user_pref("mail.server.server1.serverIDResponse", "(\"name\" \"Microsoft.Exchange.Imap4.Imap4Server\" \"version\" \"15.20\")");
user_pref("mail.server.server1.socketType", 3);
user_pref("mail.server.server1.spamActionTargetAccount", "imap://robertg%40<redacted>.co.za at outlook.office365.com");
user_pref("mail.server.server1.storeContractID", "@mozilla.org/msgstore/berkeleystore;1");
user_pref("mail.server.server1.timeout", 29);
user_pref("mail.server.server1.type", "imap");
user_pref("mail.server.server1.userName", “robertg@<redacted>.co.za");
user_pref("mail.server.server2.directory", "/Users/robertg/Library/Thunderbird/Profiles/07coq1ad.default-release/Mail/Local Folde rs”);
```

Thank you.


More information about the neomutt-users mailing list