chadxz / imap-simple

Wrapper over node-imap, providing a simpler api for common use cases
MIT License
243 stars 80 forks source link

Missing "toString" ? #101

Closed marlon07021 closed 3 years ago

marlon07021 commented 3 years ago

I was wondering why not to use "toString" on this resolve too? There is an intention that I obviously don't know or is just a thing ? Never before received a base64 encoded body until today and now I'm showing a raw Buffer array on the user ui.

https://github.com/chadxz/imap-simple/blob/a9f65de178f10462482be57dba6acea418e7fa44/lib/imapSimple.js#L249

I can parse it by myself, but that's exactly what I was wondering about in case this is a real bug.