levz0r / gmail-tester

A simple Node.js Gmail client which checks the inbox for message existence
MIT License
256 stars 68 forks source link

fix(get-recent-email): handle attachment body part #110

Open stanleynguyen opened 1 year ago

stanleynguyen commented 1 year ago

Sometimes, the attachments could be of type text/plain or text/html and mistaken for a email body part while being an attachment (Please see attached screenshot).

Screenshot 2022-11-16 at 10 43 59 AM

I'm proposing that we should apply a blanket check to skip processing the body part if it doesn't have a body