Home GnuPG
Diffusion GpgOL 25d5c27aeb51

Change print detection

Description

Change print detection

* src/application-events.cpp (ItemLoad): Log print.
* src/mail.cpp (Mail::checkIfMailMightBePrinting_o): Use a
global map.

This changes the way print jobs are detected by just noting
them down in a set.

Downside of this is that the categories will no longer be
added and decrypted synchronously until the next start of
outlook.

I spent half a day trying to figure out how to better
detect this but I cannot find a way to see if a mail
was actually printed and we get only one BeforePrint
event for all the ItemLoads that occur when you change
the printer as each change of the printer unloads and
reloads the mail.

Details

Provenance
aheineckeAuthored on May 15 2020, 3:05 PM
Parents
rOdba1d87a6a65: Add an introspection oom object dump func
Branches
Unknown
Tags
Unknown
Tasks
T4890: print preview tries to use wrong key for decryption