Home GnuPG
Diffusion GnuPG 783a4a98378f

gpg: Find keys using mail addresses with garbage after the '>'
783a4a98378fUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Find keys using mail addresses with garbage after the '>'

* kbx/keybox-search.c (blob_cmp_mail): Stop comparing at the '>'.

This change allows to find mail addresses like

Joe Doe <joe@example.org> bar
Joe Doe <joe@example.org> (comment)

using the command

gpg  -k '<joe@example.org'

or (with syntactic sugar)

gpg  -k '<joe@example.org>'

These UIDs are ill-formed according to gpg checks but nevertheless are
seen in the wild.

Note, that it does only work with the new keybox format.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 20 2015, 1:29 PM
Parents
rG5136e39c6466: common: Fix syntax error when building with gnutls
Branches
Unknown
Tags
Unknown