Diffusion GpgOL 4967d4eeea83

Read Headers as stream

Authored by aheinecke on Dec 2 2017, 3:08 PM.

Description

Read Headers as stream

* src/mapihelp.cpp (mapi_get_header): New helper.
(mapi_get_message_content_type): Use it.

This fixes accessing very large headers where
MAPI might not return it as a property but
instead error out with MAPI_E_NOT_ENOUGH_MEMORY.

Details