MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / plainTextBodyRendering

Method plainTextBodyRendering

src/core/imap/MCIMAPSession.cpp:4420–4435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4418}
4419
4420String * IMAPSession::plainTextBodyRendering(IMAPMessage * message, String * folder, bool stripWhitespace, ErrorCode * pError)
4421{
4422 MCAssert(folder != NULL);
4423 String * htmlBodyString = htmlBodyRendering(message, folder, pError);
4424
4425 if (* pError != ErrorNone) {
4426 return NULL;
4427 }
4428
4429 String * plainTextBodyString = htmlBodyString->flattenHTML();
4430 if (stripWhitespace) {
4431 return plainTextBodyString->stripWhitespace();
4432 }
4433
4434 return plainTextBodyString;
4435}
4436
4437void IMAPSession::setAutomaticConfigurationEnabled(bool enabled)
4438{

Callers 2

mainMethod · 0.45
testMessageParserFunction · 0.45

Calls 2

flattenHTMLMethod · 0.80
stripWhitespaceMethod · 0.80

Tested by 1

testMessageParserFunction · 0.36