auto unlock pass for mutt
This commit is contained in:
parent
b904c760ea
commit
17e1cc8699
3 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
11
mutt/unlock-pass.sh
Executable 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
|
Loading…
Reference in a new issue