Skip to content

Instantly share code, notes, and snippets.

@soardex
Created June 24, 2015 06:36
Show Gist options
  • Save soardex/6883715ecdc6a8bad4eb to your computer and use it in GitHub Desktop.
Save soardex/6883715ecdc6a8bad4eb to your computer and use it in GitHub Desktop.
Encrypted .muttrc for Mutt
# create ~/.mutt/secrets
cat > ~/.mutt/secrets << EOF
set imap_pass="secret_password"
set smtp_pass="secret_password"
EOF
# encrypt ~/.mutt/secrets
gpg -e -r [your_gpg_id] ~/.mutt/secrets
# clean removed ~/.mutt/secrets file
shred ~/.mutt/secrets
rm -f ~/.mutt/secrets
# add at the end of your `.muttrc`. note the pipe at the end of the command, so that it would output in to mutt
source "gpg -d ~/.mutt/secrets.gpg |"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment