Created
June 24, 2015 06:36
-
-
Save soardex/6883715ecdc6a8bad4eb to your computer and use it in GitHub Desktop.
Encrypted .muttrc for Mutt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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