diff options
Diffstat (limited to 'src/core/imap/MCIMAPSession.cc')
-rw-r--r-- | src/core/imap/MCIMAPSession.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc index 0c68b537..7da3f435 100644 --- a/src/core/imap/MCIMAPSession.cc +++ b/src/core/imap/MCIMAPSession.cc @@ -3058,12 +3058,15 @@ String * IMAPSession::plainTextBodyRendering(IMAPMessage * message, String * fol String * htmlBodyString = htmlBodyRendering(message, folder); String * plainTextBodyString = htmlBodyString->flattenHTML(); - plainTextBodyString->replaceOccurrencesOfString(MCSTR(" "), MCSTR(" ")); plainTextBodyString->replaceOccurrencesOfString(MCSTR("\t"), MCSTR(" ")); plainTextBodyString->replaceOccurrencesOfString(MCSTR("\n"), MCSTR(" ")); plainTextBodyString->replaceOccurrencesOfString(MCSTR("\v"), MCSTR(" ")); plainTextBodyString->replaceOccurrencesOfString(MCSTR("\f"), MCSTR(" ")); plainTextBodyString->replaceOccurrencesOfString(MCSTR("\r"), MCSTR(" ")); + while (plainTextBodyString->replaceOccurrencesOfString(MCSTR(" "), MCSTR(" ")) > 0) { + /* do nothing */ + } + return plainTextBodyString; } |