offlineimap.py (286B)
1 #!/usr/bin/env python 2 from subprocess import check_output 3 4 def get_pass(account): 5 return check_output("pass email/" + account + "/passwd", shell=True).splitlines()[0] 6 7 def get_imap(account): 8 return check_output("pass email/" + account + "/imap_url", shell=True).splitlines()[0]