Created
July 7, 2011 05:39
-
-
Save rsutphin/1068941 to your computer and use it in GitHub Desktop.
Extract gmail SMTP password from OS X keychain (from Mail.app configuration)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Will prompt the first time | |
| `security find-internet-password -gs smtp.gmail.com 2>&1 | grep password`. | |
| split(' ').last.gsub('"', '').strip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment