diff --git a/core/ansi_escape_parser.js b/core/ansi_escape_parser.js index ba08c290..a073465a 100644 --- a/core/ansi_escape_parser.js +++ b/core/ansi_escape_parser.js @@ -176,7 +176,7 @@ function ANSIEscapeParser(options) { id : id ? parseInt(id, 10) : null, args : args, SGR : ansi.getSGRFromGraphicRendition(self.graphicRendition, true) - }); + }); if(self.mciReplaceChar.length > 0) { self.emit('chunk', ansi.getSGRFromGraphicRendition(self.graphicRenditionForErase)); diff --git a/core/ftn_mail_packet.js b/core/ftn_mail_packet.js index c602593e..df8f9820 100644 --- a/core/ftn_mail_packet.js +++ b/core/ftn_mail_packet.js @@ -473,6 +473,7 @@ function Packet(options) { try { decoded = iconv.decode(messageBodyBuffer, encoding); } catch(e) { + // :TODO: add log warning here including failure reason decoded = iconv.decode(messageBodyBuffer, 'ascii'); } //const messageLines = iconv.decode(messageBodyBuffer, encoding).replace(/\xec/g, '').split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/g);