From b45503717ff6d8a9461cfbbfb71bbdc1070d2cf0 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 28 Oct 2025 17:14:38 -0400 Subject: [PATCH] feat: Adds script to generate work email tokens for work email account. --- TODO.md | 1 + work-email-neomutt | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 work-email-neomutt 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"