You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I would like to decrypt password from file inside offlineimap, offlineimap have such config: remotepasseval = unencrypt_password("~/.offlineimappass")
Hi,
I would like to decrypt password from file inside offlineimap, offlineimap have such config:
remotepasseval = unencrypt_password("~/.offlineimappass")
and my offlineimap.py file looks like:
#!/usr/bin/env python2
#import os
#import sys
#from offlineimap import OfflineImap
#oi = OfflineImap()
#oi.run()
import os
def unencrypt_password(filename):
return os.popen("cat %s | openssl pkeyutl -decrypt "
"-inkey ~/.ssh/private.pem" % filename)
.read().rstrip()
but during a run I have such error:
not enough values to unpack (expected 2, got 1)
The text was updated successfully, but these errors were encountered: