2019-07-22 17:37:35 +02:00
|
|
|
#!/usr/bin/python3
|
2016-08-05 01:43:09 +02:00
|
|
|
|
|
|
|
import gi
|
|
|
|
|
|
|
|
gi.require_version('GnomeKeyring', '1.0')
|
|
|
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
logger = logging.getLogger('keyring')
|
|
|
|
logger.addHandler(logging.StreamHandler())
|
|
|
|
|
|
|
|
import keyring
|
|
|
|
import sys
|
|
|
|
import getpass
|
|
|
|
|
|
|
|
keyring.set_password('offlineimap', sys.argv[1], getpass.getpass())
|