From 89dc30042570d61d2d369b4fc18a2886683d6dbf Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 7 Sep 2025 02:55:11 -0700 Subject: [PATCH] :wrench: Mutt config setup --- .config/mutt/muttrc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc index 413df3b1..fd2f54c7 100644 --- a/.config/mutt/muttrc +++ b/.config/mutt/muttrc @@ -6,7 +6,22 @@ set from = "mosssap@gmail.com" set realname = "Brian Hayes" # Gmail +# Go to https://myaccount.google.com/apppasswords and setup an app password, don't close prompt, app passwords are only visible once +# Then: +# gpg --full-generate-key +# Then create a passwords.txt file and input: +# set imap_pass = "app password generated by google here" +# set smtp_pass = "app password generated by google here" +# Then encrypt it using gpg: +# gpg -e -r "mosssap@gmail.com" -o "$XDG_CONFIG_HOME/mutt/passwords.gpg" passwords.txt +# Make sure in ~/.gnupg/gpg.conf you have: +# use-agent +# pinentry-mode loopback +# Then remove the passwords.txt file +# And you're all set! set imap_user = "mosssap@gmail.com" +# set imap_pass = "temporary, don't paste passwords here" +# set smtp_pass = "temporary, don't paste passwords here" set smtp_url = "smtps://mosssap@gmail.com@smtp.gmail.com:465/" set smtp_authenticators = 'gssapi:login' source "gpg -dq $XDG_CONFIG_HOME/mutt/passwords.gpg |" @@ -120,7 +135,7 @@ macro attach,compose \cb " urlscan" "call urlscan to extract # Use GPGME # Use my key for signing and encrypting -set pgp_default_key = 49EDE10574AFE8AB90A8F6C2D5D3C6708DEBFFFB +set pgp_default_key = BCEEC85B871A40E95A21AED210DFF200107FFFC5 # Use GPGME set crypt_use_gpgme = yes