From 7ccd2d5b3d14b528e9d497e7937c31215568d338 Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Wed, 14 Jul 2021 18:27:49 -0400 Subject: Add method to use pass --- oi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oi.py b/oi.py index eb51c83..64dce16 100755 --- a/oi.py +++ b/oi.py @@ -1,8 +1,12 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Support offlineimap by retrieving login credentials and doing nametrans import re, os +from subprocess import check_output + +def get_pass_pass(account): + return check_output("pass " + account, shell=True).splitlines()[0] def get_authinfo_password(machine, login, port): s = "machine %s login %s password ([^ ]*) port %s" % (machine, login, port) -- cgit v1.2.3