| 4418 | } |
| 4419 | |
| 4420 | String * 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 | |
| 4437 | void IMAPSession::setAutomaticConfigurationEnabled(bool enabled) |
| 4438 | { |