My application imports all messages from the Notes GMail folder. For this I use the imap npm module.
Using the example from their github page, I get the entire contents of the message to the buffer:
stream.on('data', function(chunk) { count += chunk.length; buffer += chunk.toString('utf8'); });
However, I get offers like
0KHQvdCw0YfQsNC70LAg0YHQvtC30LTQsNC10YLRgdGPINGA0LXRiNC10YLQutCwINC/0YDQvtGB 0YLRgNCw0L3RgdGC0LLQsCDQstC+0L7QsdGA0LDQttC10L3QuNGPLiZuYnNwOzxkaXY+PGJyPjwv ZGl2PjxkaXY+0JfQsNGC0LXQvCDQvdCwI
(incorrect conversion from Russian)
I found out that these are base64 encoded text fragments, and to read them I need to convert it from base64 to utf8.
Sometimes an annoying symbol also appears that appears out of nowhere ...
letting them f= all on her shoulders
Do you know how I could get rid of these two problems?
Thanks!
source share