Skip to content

Instantly share code, notes, and snippets.

@rsutphin
Created July 7, 2011 05:39
Show Gist options
  • Select an option

  • Save rsutphin/1068941 to your computer and use it in GitHub Desktop.

Select an option

Save rsutphin/1068941 to your computer and use it in GitHub Desktop.
Extract gmail SMTP password from OS X keychain (from Mail.app configuration)
# 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