dotfiles/mbsync/usr/bin/get-mail-password
2019-07-22 08:38:56 -07:00

15 lines
255 B
Python
Executable file

#!/usr/bin/python3
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]))