print preview tries to use wrong key for decryption
Open, Needs TriagePublic


When trying to print an encrypted mail from the "main" view of outlook, and then selecting a different printer from the default one, the decryption of the print preview fails.

(At first, the decryption works, then, after changing the printer, the new decryption fails, and a "please wait.." will be printed)

Logging indicates that this second decryption tries to use the secret key of the sender (which usually is not in the key ring), so the decryption fails.
The same dialog, when opened from the "message's window" (i.e. not "main view of outlook") , works without problems.

GDecrypt/VeryfiResult; GPGME::DecryptionResult(GPGME::Error(0 (Success))
GPGME::DecryptionResult::Recipient(keyID: (Sender) , shortKEyId (Sender) ... status: GpgME::Error(117440529 (No sercret key)

I'm using Windows 10 Pro, MS Outlook 2016, and gpg4win 3.1.11 for this, reproducing a report (see external link)

werner added a subscriber: werner.Wed, Mar 25, 1:00 PM

FWIW, a log of the decryption process will always show the sender's key because a message is usually also encrypted to that one (--encrypt-to).