mutt/offlineimaplinux.py @ 4b486c5a8a54

Linux
author Steve Losh <steve@stevelosh.com>
date Mon, 09 Jul 2018 11:14:40 -0400
parents 8899300998c0
children 5e93682ea728
#!/usr/bin/python

import subprocess

def get_keychain_pass(account=None, command='pass'):
    full_command = "%s '%s'" % (command, account)
    output = subprocess.check_output(full_command, shell=True, stderr=subprocess.STDOUT)
    return output.splitlines()[0]