feat: Adds script to generate work email tokens for work email account.

This commit is contained in:
2025-10-28 17:14:38 -04:00
parent 8acc2e6647
commit b45503717f
2 changed files with 14 additions and 0 deletions

View File

@@ -29,3 +29,4 @@
using ~/.config/yubico and it didn't work) using ~/.config/yubico and it didn't work)
- Move keyboard (kanata) systemd service to be started as a '--user' service, as - 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. 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)

13
work-email-neomutt Executable file
View File

@@ -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"