smtp-server icon indicating copy to clipboard operation
smtp-server copied to clipboard

Mailparser flowed with Content-Transfer-Encoding base64 not working

Open do-web opened this issue 7 years ago • 1 comments

Here is the test:

'Base64 flowed': test => {
        let encodedText = 'Content-type: text/plain; format=flowed; charset=utf-8\r\nContent-Transfer-Encoding: bAse64\r\n\r\nw5XDhMOWw5w=',
            mail = Buffer.from(encodedText, 'utf-8');

        let mailparser = new MailParser();
        mailparser.end(mail);
        mailparser.on('data', () => false);
        mailparser.on('end', () => {
            test.equal(mailparser.text, 'ÕÄÖÜ');
            test.done();
        });
    }

do-web avatar Oct 31 '17 13:10 do-web

Any update to this issue?

lbeeon avatar Jun 27 '18 02:06 lbeeon