key lookup strategies

Ans ans at
Sun Nov 28 20:45:09 CET 2010


I recently discovered that the keylookup in gpg has some funny behaviors.

If i have in my keyring two keys for:

foo at,
oo at

and foo happens to be listet before oo.

When i do: gpg --encrypt -r oo at

it selects the key for foo at instead of oo at

I know that it uses the first key to which the pattern applies and that
i could force the correct lookup using -r "<oo at>" but still it
seems somehow strange.

wouldn't it be better to prefer exact matches before partial ones or
present a selection-dialogue when using the --encrypt option? Because
now it just takes any key, which happens to match first.

cheers and thanks for the good work,

More information about the Gnupg-devel mailing list