You are not logged in.
Hi,
there was a message shown after upgrading getmail, that said after installing python2-gnomekeyring it was possible to store the email account password in the gnome keyring. I wanted to try this, so i installed the package, and saw in the documentation:
To store your POP/IMAP account password into the Gnome keyring, ensure the password is not provided in the getmailrc file, and run getmail with the special option --store-password-in-gnome-keyring; getmail will run, prompt you for the password, store it in the Gnome keyring, and exit without retrieving mail. If this option is not recognized, your Python installation does not have Gnome keyring integration support, or Gnome indicates that the keyring is not available.
Gnome-keyring says that this option is not recognized, but i am sure that the keyring works, because it is used to store my wlan password.
Any ideas about what to try next?
tl,dr: Calling gnome keyring with --store-password-in-gnome-keyring does not work.
Offline
The CHANGELOG says this was added in 4.36.0. Which version are you using?
Version 4.36.0
15 December 2012
-add support for retrieving POP/IMAP passwords from, and storing them to,
the Gnome keyring. Thanks: Krzysztof Warzecha, Scott Hepler.
Offline
extra/python2-gnomekeyring 2.32.0-14
Python bindings for libgnome-keyringDo you have that installed as well?
Also, you are supposed to pass that argument to getmail, not gnome keyring itself.
Last edited by µ ² (2013-12-21 09:23:18)
Offline
To store your POP/IMAP account password into the Gnome keyring, ensure the password is not provided in the getmailrc file, and run getmail with the special option --store-password-in-gnome-keyring; getmail will run, prompt you for the password, store it in the Gnome keyring, and exit without retrieving mail. If this option is not recognized, your Python installation does not have Gnome keyring integration support, or Gnome indicates that the keyring is not available.
Emphasis mine.
Also, if you don't have it yet, try installing the python2-gobject package. You can test whether your python2-keyring installation can access the Gnome keyring properly by running the following at a Python prompt:
>>> import keyring; keyring.get_keyring()
<keyring.backends.Gnome.Keyring at <xxxxxxxx>Offline
Thank you for your answers.
The packages are installed and updated:
$ pacman -Q getmail python2-gnomekeyring python2-gobject2
getmail 4.43.0-2
python2-gnomekeyring 2.32.0-14
python2-gobject2 2.28.6-9I know that the argument has to be supplied to getmail:
$ getmail --store-password-in-gnome-keyring
Usage: getmail [options]
getmail: error: no such option: --store-password-in-gnome-keyring@ Runiq, you are right, the problem is that python can not access the keyring!
Python 2.7.6
>>> import keyring; keyring.get_keyring()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named keyringOffline
Sorry, error on my part: I forgot the python2-gnomekeyring package. I made you use the python2-keyring package API, which you don't seem to have installed.
In any case, it all depends on how getmail accesses the GNOME keyring. There are a few possibilities:
a) It uses the python2-keyring package's API, which is the one I made you use in the above code snippet. You don't seem to have python2-keyring installed, that's why the import failed; it doesn't necessarily mean that getmail can't access your keyring through some other API.
b) It uses Freedesktop.org's Secret Storage API, which is both more modern and more universal than libgnome-keyring (KDE's "Wallet" keyring service uses it as well).
c) It uses python-gnomekeyring, which has a different API.
I suggest installing both python2-keyring and python2-secretstorage to address a) and b). One step at a time gets you where you're going and all that.
Last edited by Runiq (2013-12-21 13:51:37)
Offline
Here is what i did:
installed python2-keyring
installed python2-gobject
installed python2-secretstorage
Still not working.
Offline