How should we handle subaddressing (joe+mailinglist@example.org) in gpg. There are a coupe of real world problems.
Change mailaddr_from_uid ?
How should we handle subaddressing (joe+mailinglist@example.org) in gpg. There are a coupe of real world problems.
Change mailaddr_from_uid ?
rG GnuPG | |||
rG6b9f77291462 common: Prepare for parsing mail sub-addresses. |
It does not make sense to handle this in the protocol. The client should always ask for joe@example.org and thus keep the whole thing mostly out of gpg. This requires that keys are not created with sub-addresses. However, if someone has a need for this, this strategy should work:
This way a key with a full address can still be imported and used but is not used for remote things. gpg-wks-client might even auto create a new user-id with the stripped address.
I would change gpgme_addrspec_from_uid and the gnupg equivalent to strip out the subaddress.
From the 992 keys in my keyring i only have 3 non expired keys with subaddresses and I don't have any case where multiple keys exist for multiple subaddresses.
Sorry I did not see your first comment.
I would be fine if gnupg would not handle it and we only change it in gpgme to have a reference normalization and to make it easier for Applications to handle this.