mutt/offlineimaplinux.py @ 06b6e608a196

Add snap to path
author Steve Losh <steve@stevelosh.com>
date Tue, 24 Jul 2018 00:29:44 +0000
parents b86a3b6153f2
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]