]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Use gpg-agent and set trash folders for imap accounts
authorMaximilian Friedersdorff <maxf130@gmail.com>
Sat, 30 Jan 2016 16:21:50 +0000 (16:21 +0000)
committerMaximilian Friedersdorff <maxf130@gmail.com>
Sat, 30 Jan 2016 16:21:50 +0000 (16:21 +0000)
bash_profile
mutt/account.com.friedersdorff.max
mutt/account.com.gmail.maxf130
mutt/account.uk.ac.le.student.mf195

index 258a01f45f39f253c603f64a9b5df22801e54877..5baa82823ea746802ddf945dabb681d4478b95d9 100644 (file)
@@ -9,12 +9,21 @@ MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
 NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
 
 if [ -n "$BASH_VERSION" ]; then
-    # include .bashrc if it exists
-    if [ -f "$HOME/.bashrc" ]; then
-       . "$HOME/.bashrc"
-    fi
+  # include .bashrc if it exists
+  if [ -f "$HOME/.bashrc" ]; then
+    . "$HOME/.bashrc"
+  fi
 fi
 
 if [ -f /etc/bash_completion ]; then
   . /etc/bash_completion
 fi
+
+envfile="$HOME/.gnupg/gpg-agent.env"
+if [[ -e "$envfile" ]] && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null; then
+  eval "$(cat "$envfile")"
+else
+  eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "$envfile")"
+fi
+export GPG_AGENT_INFO  # the env file does not contain the export statement
+export SSH_AUTH_SOCK   # enable gpg-agent for ssh
index d67ad5d392b088b904e11264576fa767673bf25a..fe66709d006cecec4199840542cbe575ecb4a473 100644 (file)
@@ -10,3 +10,5 @@ set postponed = "+Drafts"
 set header_cache = ~/.mutt/com.friedersdorff.max/cache/headers
 set message_cachedir = ~/.mutt/com.friedersdorff.max/cache/bodies
 set certificate_file = ~/.mutt/com.friedersdorff.max/certificates
+
+set trash = "+Trash"
index fdff0111799c67b7c8c0d7d42ff191d5936d0778..14153bc54f23339ba122bfb9dc7f76e165982140 100644 (file)
@@ -7,6 +7,6 @@ set realname = "Maximilian Friedersdorff"
 set folder = "imaps://imap.gmail.com:993"
 set spoolfile = "+INBOX"
 set postponed = "+[Gmail]/Drafts"
-set header_cache = ~/.mutt/com.gmail.maxf130.account/cache/headers
-set message_cachedir = ~/.mutt/com.gmail.maxf130.account/cache/bodies
-set certificate_file = ~/.mutt/com.gmail.maxf130.account/certificates
+set header_cache = ~/.mutt/com.gmail.maxf130/cache/headers
+set message_cachedir = ~/.mutt/com.gmail.maxf130/cache/bodies
+set certificate_file = ~/.mutt/com.gmail.maxf130/certificates
index 6013b83ea0c4ab0b7ca6dca4e64f2fe1f7e9117c..32851b7436ec7b283a7e9c998cb9932b7913f1fb 100644 (file)
@@ -10,3 +10,5 @@ set postponed = "+Drafts"
 set header_cache = ~/.mutt/uk.ac.le.student.mf195/cache/headers
 set message_cachedir = ~/.mutt/uk.ac.le.student.mf195/cache/bodies
 set certificate_file = ~/.mutt/uk.ac.le.student.mf195/certificates
+
+set trash="+Trash"