23ba11c103b846d5e712d26afca01df9e9a122a3
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
:
13 def prime_gpg_agent():
17 ret
= (mailpasswd("prime") == "prime")
19 from offlineimap
.ui
import getglobalui
20 sys
.stderr
.write("Error reading in passwords. Terminating.\n")
21 getglobalui().terminate()