Diffusion GpgOL 3ba39a0f4429

Fix crash when adding attachment without fileext

Authored by aheinecke on Jun 19 2018, 9:29 AM.

Description

Fix crash when adding attachment without fileext

* src/mimemaker.cpp (infer_content_type): Check if a suffix
was found and check for the size of the suffix before using it.

The crash was introduced with 94c354a0