dotfiles/mbsync/usr/bin/get-mail-password

16 lines
255 B
Text
Raw Normal View History

2016-08-05 01:43:09 +02:00
#!/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]))