I'm doing an email application and my server is being done in HapiJS, and I'm having trouble picking up the email and turning it into a String, Buffer, or Stream.
I want to transform to these formats because they are the only ones that MailParser accept, but I have some difficulties.
First of all I was able to do everything right, but for this I was creating TXT files and then reading them, and in both steps I used fs. However I want to get the emails and parse them without creating any files, using Buffers, Streams or String that remain in memory until the parse is finished.
I'm already reading the NodeJS, MailParser, and node-imap documentation (which I'm using to get the emails , but I still can not solve this problem ...