auto unlock pass for mutt

This commit is contained in:
Frank Villaro-Dixon 2013-08-18 13:53:13 +02:00
parent b904c760ea
commit 17e1cc8699
3 changed files with 14 additions and 1 deletions

View file

@ -29,6 +29,7 @@ ln -s $WAI/mutt/passwords.gpg ./
ln -s $WAI/mutt/crypto ./
ln -s $WAI/mutt/colors.test1 ./
ln -s $WAI/mutt/colors.test2 ./
ln -s $WAI/mutt/unlock-pass.sh ./
#VIM

View file

@ -18,7 +18,8 @@ set from = "Frank@Villaro-Dixon.eu"
set realname = "Frank Villaro-Dixon"
##Passwords:
source "gpg -d ~/.mutt/passwords.gpg |"
####source "gpg -d ~/.mutt/passwords.gpg |"
source "~/.mutt/unlock-pass.sh |"
# Change the following line to a different editor you prefer.
#set editor = "vim"

11
mutt/unlock-pass.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
PASS_FILE="/dev/shm/$USER-mutt-pass"
ENC_PASS_FILE=~/.mutt/passwords.gpg
if [ ! -e $PASS_FILE ]; then
umask 077
gpg -d $ENC_PASS_FILE > $PASS_FILE
fi
cat $PASS_FILE