Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Prefer GPGME normalized email in keycache

This makes emails more comparable and puts
the responsibility of email normalisation in
GPGGME (which uses the same algorithm as gnupg).
parent fd74995f
......@@ -721,6 +721,11 @@ std::vector<Key> KeyCache::findIssuers(std::vector<Key>::const_iterator first, s
static std::string email(const UserID &uid)
// Prefer the gnupg normalized one
const std::string addr = uid.addrSpec();
if (!addr.empty()) {
return addr;
const std::string email =;
if (email.empty()) {
return DN([QStringLiteral("EMAIL")].trimmed().toUtf8().constData();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment