Fix content-type detection for headerless mails
authorAndre Heinecke <aheinecke@gnupg.org>
Wed, 27 Mar 2019 09:53:42 +0000 (10:53 +0100)
committerAndre Heinecke <aheinecke@gnupg.org>
Wed, 27 Mar 2019 09:53:42 +0000 (10:53 +0100)
commit2426ff7d1a5d1387be67a694a8ef76aa4004f8c4
tree014b8088e21670ec85c152e7f365accfcf5be63e
parent9a6c805be0c2552fb38026d8136a8ea7657e187d
Fix content-type detection for headerless mails

* src/mapihelp.cpp (mapi_get_message_content_type):
Check first attachment if mail has no headers.

--
Yep that happens. I could reproduce it by looking at
sent mails in a local data file. This is very likely
the cause for:

GnuPG-Bug-Id: T3935
src/mapihelp.cpp