offlineimap3 icon indicating copy to clipboard operation
offlineimap3 copied to clipboard

openssl password decryption error

Open Tuteksik opened this issue 1 year ago • 1 comments

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)

Tuteksik avatar Apr 25 '24 06:04 Tuteksik

Dear @zuku81

you are using python2, and this version works with python3. Are you using this OfflineIMAP version (OfflineIMAP3).

Regards, kix

thekix avatar Aug 15 '24 19:08 thekix