Home GnuPG

Use locateKeysJob instead of keyForMailboxJob for locating key

Description

Use locateKeysJob instead of keyForMailboxJob for locating key

KeyForMailboxJob internally does a KeyListJob with the same options
as the KeyListJob created by locateKeysJob() and then tries to find
the best key matching the given text. But here we are only interested
in triggering the look up and import of keys. The result of the job is
ignored. Therefore, we can use the more simple locateKeysJob().

Additionally, we remove leading and trailing whitespace and do not
perform a look up if the entered text is empty.

Details

Provenance
ikloeckerAuthored on Mar 14 2022, 10:32 AM
Parents
rKLEOPATRA5d097045ef6b: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown
Tasks
T5845: Kleopatra: Accessibility for file encryption