danchoi / vmail

a vim interface for gmail
http://danielchoi.com/software/vmail.html
MIT License
785 stars 59 forks source link

Keychain integration for password in Mac OS X #3

Open pda opened 13 years ago

pda commented 13 years ago

I love the idea of Vmail :)

It would be great to see the account password stored in Keychain under Mac OS X.

For many people, their Gmail password is the most important "master password" they have, and I'm not comfortable storing mine in a plain-text configuration file which ends up in Time Machine backups etc.

Cheers! Paul

pda commented 13 years ago

Lachlan suggests supporting Gmail IMAP over OAuth instead, which is probably much simpler and better suited.

danchoi commented 13 years ago

Thanks for the suggestions, both of you. I'll see what I can do about the OS X keychain first. I'll need to read up on IMAP over OAuth to learn what that is and why vmail should use it.

ngmaloney commented 13 years ago

I created a fork that adds native OSX keychain support. It requires some new parameters in the .vmailrc:

use_keychain: boolean

keychain_key: string

My .vmailrc file looks like

username: ngmaloney@gmail.com use_keychain: true name: Nick Maloney signature: |

Nick Maloney

danchoi commented 13 years ago

Thanks for taking the initiative. If you want me to pull in your mod, just send a pull request

pda commented 13 years ago

Nice work Nick.

ngmaloney commented 13 years ago

@danchoi Will do. If you wouldn't mind, double check the code as it was a quick hack. @pda Thanks!