dingen2
[dotfiles.git] / offlineimap.py
1 #!/bin/env python
2 # -*- coding: utf-8 -*-
3
4 import subprocess
5
6 def mailpasswd():
7 args = '/usr/bin/gpg --use-agent --quiet --batch -d /home/mart/passwd.gpg | grep -i mail | awk \'{print $3}\''
8 try:
9 return subprocess.check_output(args, shell='/bin/bash').strip()
10 except subprocess.CalledProcessError:
11 return ""