Home GnuPG
Diffusion GPGME a28d31fdb623

core: Improve mailbox only uid handling
a28d31fdb623Unpublished

Unpublished Commit · Learn More

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

Description

core: Improve mailbox only uid handling

* src/key.c (_gpgme_key_append_name): Set email and remove name
for uid only keys.

If we have a name and no email but the name can be parsed as
an address we now treat the address as email and remove the name.

This fixes downstream users that rely on email to show email
addresses and don't expilicity handle this case.

E.g. A userid foo@example.com was:
uid->name = "foo@example.com"
uid->email = ""
uid->address = "foo@example.com"

It is now:
uid->name = ""
uid->email = "foo@example.com"
uid->address = "foo@example.com"

Details

Provenance
aheineckeAuthored on Feb 1 2017, 4:16 PM
Parents
rMba594d85e35e: qt: Increase timeout when waiting for signals.
Branches
Unknown
Tags
Unknown

Event Timeline

Andre Heinecke <aheinecke@intevation.de> committed rMa28d31fdb623: core: Improve mailbox only uid handling (authored by Andre Heinecke <aheinecke@intevation.de>).Feb 1 2017, 4:17 PM