tags 556520 pending thanks Hi Michael,
> maybe I have a bad day, but I fail to configure mpop to use the GNOME > keyring. The manpage says that it would automatically look in the > keyring to retrieve a password, but apparently it fails finding one, > since I never put it in. However, the is no information about how I > should do this (specifically what key id it would look for), neither in > the Debian package nor in the upstream documentation at > http://mpop.sourceforge.net/doc/mpop.html You're right, documentation and a tool to set passwords into the GNOME keyring are missing. > I'd be glad for pointers how this feature is intended to be used. In fact there is already a script[1] to use msmtp with the GNOME keyring daemon but it needs to be adapted to work with mpop. I think that the following patch (not tested) should be enought to make it work with mpop: --8<--------------- --- msmtp-keyring-manage-password.py 2009-11-29 23:58:11.584769972 --+0100 +++ msmtp-keyring-manage-password-new.py 2009-11-30 --00:01:55.272768601 +0100 @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -'''Set/get passwords for MSMTP in Gnome Keyring +'''Set/get passwords for MPOP in Gnome Keyring Copyright (C) 2009 Gaizka Villate Author: Gaizka Villate <gaiz...@gmail.com> @@ -20,20 +20,20 @@ # Does it already exist? if get_keyring_password_for_msmtp_user(user, server) is not None: - error_msg = "SMTP password for user '%s' in server '%s' does already exists" %(user, server) + error_msg = "POP/IMAP password for user '%s' in server '%s' does already exists" %(user, server) return (False, error_msg) # get default keyring name. you can also specify it explicitly. keyring = gk.get_default_keyring_sync() # display name for password. - display_name = 'SMTP password for %s at %s'%(user, server) + display_name = 'POP/IMAP password for %s at %s'%(user, server) # select type. if you want some kind of "network" password, it seems that # appropriate type is network_password because it has a schema already. type = gk.ITEM_NETWORK_PASSWORD - usr_attrs = {'user':user, 'server':server, 'protocol':'smtp'} + usr_attrs = {'user':user, 'server':server, 'protocol':'pop3'} # Now it gets ready to add into the keyring. Do it. # Its id will be returned if success or an exception will be raised @@ -44,7 +44,7 @@ def get_keyring_password_for_msmtp_user(user, server): try: - results = gk.find_network_password_sync(user=user, server=server, protocol='smtp') + results = gk.find_network_password_sync(user=user, server=server, protocol='pop3') except gk.NoMatchError: return None --------------->8-- I will fix that bug soon. [1] http://github.com/gaizka/misc-scripts/blob/master/msmtp/msmtp-keyring-manage-password.py?raw=true Regards, -- Emmanuel Bouthenot mail : kol...@openics.org gpg : 0x414EC36E xmpp : kol...@im.openics.org irc : kolter@(freenode|oftc) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org