Hacker News new | ask | show | jobs
by thejefflarson 2818 days ago
I wrote a small program do exactly this on OSX and Linux (Gnome):

https://github.com/thejefflarson/getpasswd

It accesses the OS keychain to get the right password. I don't use offlineimap -- I use mbsync instead which has a PassCmd option where you can pass in a shell command (e.g. getpasswd <imap-server> <imap-user>). And another tool to add passwords to the GNOME Keychain:

https://github.com/thejefflarson/setpasswd

Adding passwords to the OSX keychain is easy enough, but I found it fiddly in Gnome's GUI. YMMV.