mutt/offlineimaplinux.py @ 5e93682ea728

train my stupid fuckin brain to touch the yubikey
author Steve Losh <steve@stevelosh.com>
date Tue, 24 Jul 2018 00:37:36 +0000
parents b86a3b6153f2
children 25d490edffa6
#!/usr/bin/env python3

import subprocess

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