Tom Willemse
946b7425de
- Load the necessary environment variables from ‘gnome-keyring-daemon’ when loading fish. - Don’t sync the Archive directory from ryuslash.org, it’s too big and mbsync seems to get really confused about it. - Disable old email accounts from syncing with mbsync. - Fix the ‘get-mail-password’ and ‘set-mail-password’ scripts. - Use ‘secretstorage’ instead of ‘keyring’, this appears to be newer and easier to use.
12 lines
295 B
Python
Executable file
12 lines
295 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
import sys
|
|
import secretstorage
|
|
|
|
connection = secretstorage.dbus_init()
|
|
collection = secretstorage.get_collection_by_alias(connection, "login")
|
|
|
|
for foo in collection.search_items(
|
|
{"application": "mbsync", "account": sys.argv[1]}
|
|
):
|
|
print(foo.get_secret().decode())
|