5 acct
= os
.path
.basename(acct
)
6 path
= "/home/amin/.passwd/%s.gpg" % acct
7 args
= ["gpg", "--use-agent", "--quiet", "--batch", "-d", path
]
9 return subprocess
.check_output(args
).strip()
10 except subprocess
.CalledProcessError
:
14 acct
= os
.path
.basename(acct
)
15 path
= "/home/amin/.passwd/%s" % acct
18 return subprocess
.check_output(args
).strip()
19 except subprocess
.CalledProcessError
:
22 def prime_gpg_agent():
26 ret
= (mailpasswd("prime") == "prime")
28 from offlineimap
.ui
import getglobalui
29 sys
.stderr
.write("Error reading in passwords. Terminating.\n")
30 getglobalui().terminate()