diff --git a/TODO.md b/TODO.md index 617051f..0b74c07 100644 --- a/TODO.md +++ b/TODO.md @@ -29,3 +29,4 @@ using ~/.config/yubico and it didn't work) - Move keyboard (kanata) systemd service to be started as a '--user' service, as it seems to not work when used on a desktop (mac mini) vs. laptop. +- Add neomutt configuration files into the repo (or probably a private repo) diff --git a/work-email-neomutt b/work-email-neomutt new file mode 100755 index 0000000..36503b0 --- /dev/null +++ b/work-email-neomutt @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Generate login tokens for using work email with neomutt, this only +# needs to be ran once. + +/usr/share/neomutt/oauth2/mutt_oauth2.py \ + --provider microsoft \ + --authorize \ + --verbose \ + --authflow localhostauthcode \ + --client-id='08162f7c-0fd2-4200-a84a-f25a4db0b584' \ + --client-secret='TxRBilcHdC6WGBee]fs?QR:SJ8nI[g82' \ + "$HOME/.config/mutt/mhoush@houshhomeenergy.com.tokens"