Reading an entry from a python program
Asked by
Fredrik Arnerup
I'm thinking of using my passwordsafe db for storing my mail password and letting offlineimap look it up using a python hook.
Is this a good way of reading a password entry, or is there a better one?
import pasaffe_lib.readdb as readdb
f = readdb.
user, password = next((e[4], e[6]) for e in f.records.values() if e[3]=="mail")
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Pasaffe Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Fredrik Arnerup
- Solved:
- Last query:
- Last reply:
To post a message you must log in.