Big updates, ie khal+vdirsyncer
[dotfiles.git] / .mutt / offlineimap.py
index 9a6446a..46a4aa8 100644 (file)
@@ -3,12 +3,9 @@
 
 import subprocess
 
-
 def mailpasswd():
-    args = '/usr/bin/gpg --use-agent --quiet --batch --decrypt ' +\
-        '/home/marlub/.mutt/passwd.gpg'
+    args = '/home/mart/.config/i3/gpass.sh mart@martlubbers.net'
     try:
-        result = subprocess.check_output(args, shell='/bin/bash').strip()
-        return result
-    except:
+        return subprocess.check_output(args, shell='/bin/bash').strip()
+    except subprocess.CalledProcessError:
         return ""