mutt/offlineimaplinux.py @ 7de8b091e613

More
author Steve Losh <steve@stevelosh.com>
date Fri, 01 Feb 2019 17:00:30 -0500
parents 25d490edffa6
children (none)
#!/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)
    password = output.splitlines()[0]
    return password