Diffusion GpgOL cd8633c93a4f

Hold invalidation lock while parsing

Authored by aheinecke on Feb 12 2018, 2:52 PM.

Description

Hold invalidation lock while parsing

* src/mail.cpp (do_parsing): Hold invalidation lock.
* src/windowmessages.h: Expose invalidation lock.
* src/windowmessages.cpp: Define / initialize lock.

This should make it more robust to do the parsing without
having the mail deleted under our hands because of invalidation
wonkyness.