deploy encryption, mutt

This commit is contained in:
Frank Villaro-Dixon 2013-12-28 23:17:56 +01:00
parent 3c9a78671e
commit 100b2aab5c
6 changed files with 25 additions and 11 deletions

View file

@ -12,6 +12,13 @@ function deploy_directory()
cd .. cd ..
} # }}} } # }}}
function deploy_encryption()
{
cd ~
mkdir $SECURE_DIR/.mozilla
ln -s $SECURE_DIR/.mozilla ~./.mozilla
}
function deploy_for_desktop() function deploy_for_desktop()
{ # {{{ { # {{{
cd ~ cd ~
@ -150,6 +157,7 @@ ln -s $WAI/bashrc ./.bashrc
ln -s $WAI/bash_ps1 ./.bash_ps1 ln -s $WAI/bash_ps1 ./.bash_ps1
deploy_for_desktop deploy_for_desktop
deploy_encryption
deploy_vim deploy_vim
deploy_ssh deploy_ssh
deploy_mutt deploy_mutt

View file

@ -1,4 +1,4 @@
image/*; eog %s image/*; feh %s
text/html; lynx -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput text/html; lynx -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput
audio/*; vlc %s audio/*; vlc %s
application/pdf; evince %s application/pdf; evince %s

View file

@ -17,7 +17,7 @@ my_hdr X-Message-Flag: This message violates the USA PATRIOT Act (HR 3162), sect
set smtp_pass = $my_frank_smtp_pass set smtp_pass = $my_frank_smtp_pass
set imap_pass = $my_frank_imap_pass set imap_pass = $my_frank_imap_pass
folder-hook . 'macro index d "<save-message>+Trash<enter>"' folder-hook . 'macro index d "<save-message>=Trash<enter>y"'
folder-hook =trash 'macro index d <delete-message>' folder-hook =Trash 'macro index d <delete-message>'
# vim: filetype=muttrc # vim: filetype=muttrc

View file

@ -15,10 +15,10 @@ folder-hook 'aei@outlook.unige.ch' 'source ~/.mutt/account.aei'
# switch to default account on startup # switch to default account on startup
source ~/.mutt/account.frank source ~/.mutt/account.frank
set my_frank_smtp_pass=`~/.mutt/unlock-passC.sh frank_smtp` set my_frank_smtp_pass=`~/.mutt/unlock-pass.sh frank_smtp`
set my_frank_imap_pass=`~/.mutt/unlock-passC.sh frank_imap` set my_frank_imap_pass=`~/.mutt/unlock-pass.sh frank_imap`
set my_aei_smtp_pass=`~/.mutt/unlock-passC.sh aei_smtp` set my_aei_smtp_pass=`~/.mutt/unlock-pass.sh aei_smtp`
set my_aei_imap_pass=`~/.mutt/unlock-passC.sh aei_imap` set my_aei_imap_pass=`~/.mutt/unlock-pass.sh aei_imap`
### MOTS DE PASSE ### MOTS DE PASSE

View file

@ -1,11 +1,17 @@
#!/bin/bash #!/bin/bash
PASS_FILE="/dev/shm/$USER-mutt-pass" #Unlock pass - clever version
ENC_PASS_FILE=~/.mutt/passwords.gpg
#On ecryptfs
PASS_FILE=~/.mutt/passwords_decrypted
#PASS_FILE="/dev/shm/$USER-mutt-pass"
#ENC_PASS_FILE=~/.mutt/passwords.gpg
if [ ! -s $PASS_FILE ]; then if [ ! -s $PASS_FILE ]; then
umask 077 umask 077
gpg -d $ENC_PASS_FILE > $PASS_FILE gpg -d $ENC_PASS_FILE > $PASS_FILE
fi fi
cat $PASS_FILE cat $PASS_FILE | grep $1 | cut -d"=" -f2

View file

@ -1,6 +1,6 @@
" Ma conf vim - Frank " Ma conf vim - Frank
execute pathogen#infect() "execute pathogen#infect()
syntax on syntax on
color desert color desert