diff options
author | Tom Willemse | 2016-08-05 01:43:09 +0200 |
---|---|---|
committer | Tom Willemse | 2016-08-05 01:43:09 +0200 |
commit | e87c292ab3de515970647d36963f508029e1951e (patch) | |
tree | 91d5e093fc05aecbe71ed86425d22e2d7fdb4514 /mbsync/usr/bin/get-mail-password | |
parent | dbc0aabdc1fe0faeff873a06a807279825173ed4 (diff) | |
download | new-dotfiles-e87c292ab3de515970647d36963f508029e1951e.tar.gz new-dotfiles-e87c292ab3de515970647d36963f508029e1951e.zip |
Add mbsync config
Diffstat (limited to 'mbsync/usr/bin/get-mail-password')
-rwxr-xr-x | mbsync/usr/bin/get-mail-password | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mbsync/usr/bin/get-mail-password b/mbsync/usr/bin/get-mail-password new file mode 100755 index 0000000..a26d9ce --- /dev/null +++ b/mbsync/usr/bin/get-mail-password @@ -0,0 +1,15 @@ +#!/usr/bin/python2 + +import gi + +gi.require_version('GnomeKeyring', '1.0') + +import logging + +logger = logging.getLogger('keyring') +logger.addHandler(logging.StreamHandler()) + +import keyring +import sys + +print(keyring.get_password('offlineimap', sys.argv[1])) |