diff --git a/src/vmime/messageParser.cpp b/src/vmime/messageParser.cpp index 4f53b5d0..d7dd592a 100644 --- a/src/vmime/messageParser.cpp +++ b/src/vmime/messageParser.cpp @@ -210,7 +210,16 @@ bool messageParser::findSubTextParts( } else { - // No "Content-type" field. + // No "Content-type" field. RFC2045 section 5.2 assumes this is TEXT/PLAIN + try { + shared_ptr txtPart = textPartFactory::getInstance()->create(mediaType(mediaTypes::TEXT, mediaTypes::TEXT_PLAIN)); + txtPart->parse(msg, part, p); + + m_textParts.push_back(txtPart); + } + catch (exceptions::no_factory_available& e) { + // Content-type not recognized. + } } }