mutt/offlineimaplinux.py @ e057559ad5ec

More bins on servers
author Steve Losh <steve@stevelosh.com>
date Tue, 28 Jan 2020 09:29:26 -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