🔧 Mutt config setup

This commit is contained in:
tomit4 2025-09-07 02:55:11 -07:00
parent 9cc84f8baa
commit 89dc300425

View file

@ -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 "<pipe-entry> urlscan<Enter>" "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