[Commits] [SCM] claws branch, master, updated. 3.9.3-126-g408a4be

colin at claws-mail.org colin at claws-mail.org
Wed Apr 30 22:38:27 CEST 2014

The branch master of project "claws" (Claws Mail) has been updated
       via  408a4be23469ffb9998c30c4e2282b4bd1541e08 (commit)
      from  e156c55c5e9e66d7cef382e57b9ff406211a4ffc (commit)

- Log -----------------------------------------------------------------
commit 408a4be23469ffb9998c30c4e2282b4bd1541e08
Author: Colin Leroy <colin at colino.net>
Date:   Wed Apr 30 22:37:15 2014 +0200

    Don't encrypt with a public key for which the email matches,
    but the UID is revoked or invalid.
    Fixes bug #2389, "GnuPG: invalid/revoked user IDs accepted"

diff --git a/src/plugins/pgpcore/select-keys.c b/src/plugins/pgpcore/select-keys.c
index 30c9e0b..423675c 100644
--- a/src/plugins/pgpcore/select-keys.c
+++ b/src/plugins/pgpcore/select-keys.c
@@ -308,6 +308,8 @@ fill_clist (struct select_keys_s *sk, const char *pattern, gpgme_protocol_t prot
 		if (!uid->email)
+		if (uid->revoked || uid->invalid)
+			continue;
 		raw_mail = g_strdup(uid->email);
 		if (!strcasecmp(pattern, raw_mail)) {


Summary of changes:
 src/plugins/pgpcore/select-keys.c |    2 ++
 1 file changed, 2 insertions(+)

Claws Mail

More information about the Commits mailing list