diff --git a/src/core/emailParser.ts b/src/core/emailParser.ts index 52a687d..f3b1ccf 100644 --- a/src/core/emailParser.ts +++ b/src/core/emailParser.ts @@ -26,6 +26,16 @@ export default class EmailParser extends postalMime { } get html() { + // If no html content is found, email text content will be returned if it exists. + if(!this.emailContent.html && this.emailContent.text){ + let message = ''; + const linebreaks = this.emailContent.text.split('\n'); + + linebreaks.forEach(linebreak => { + message += linebreak.trim() === ''? '