Home GnuPG
Diffusion GpgOL c31d8cdb40af

Fix multiple selection performance

Description

Fix multiple selection performance

* src/ribbon-callbacks.cpp (get_mail_from_control): Treat
multiselection like no mail is selected.

Experiments with OutlookSpy and debug output have shown that
the call:

mailitem = get_oom_object (context, "Selection.Item(1)");

triggered an ItemLoad event for each mail in a selection. This
is fun when there are thousands of mails selected and can
lead to out of resources. As a workaround for this Outlook
bug we now treat multi selection as if no mail was selected
and don't obtain the first item.

Details

Provenance
aheineckeAuthored on Nov 24 2017, 2:28 PM
Parents
rO156907fa4ef5: Additional check for mail destruction before parse
Branches
Unknown
Tags
Unknown
Tasks
T3433: Outlook hangs when selecting and deleting many mails