diff --git a/lacre/keyring.py b/lacre/keyring.py index 014a14a..34f1d70 100644 --- a/lacre/keyring.py +++ b/lacre/keyring.py @@ -60,6 +60,11 @@ class KeyCache: """Check if cache contains a key assigned to the given email.""" return email in self._keys.values() + def __repr__(self): + """Return text representation of this object.""" + details = ' '.join(self._keys.keys()) + return f'' + class KeyRing: """A high-level adapter for GnuPG-maintained keyring directory. diff --git a/lacre/mailgate.py b/lacre/mailgate.py index 00588b7..f92a691 100644 --- a/lacre/mailgate.py +++ b/lacre/mailgate.py @@ -189,9 +189,7 @@ def _identify_gpg_recipients(recipients, keys: kcache.KeyCache): # GnuPG keys found in our keyring. - LOG.info(f'Processisng recipients: {recipients!r}; keys: {keys!r}') for to in recipients: - LOG.info(f"At to={to!r}") own_key = _try_configured_key(to, keys) if own_key is not None: gpg_to.append(GpgRecipient(own_key[0], own_key[1]))