mutt/offlineimaplinux.py @ 25d490edffa6

Updates
author Steve Losh <steve@stevelosh.com>
date Tue, 02 Oct 2018 17:21:20 -0700
parents 5e93682ea728
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