Hi everyone,
I am hitting a condition which doesn't propagate an error from simple-parser.js, so my try / catch is not able to catch the error and I can't handle the failure logic. Basically in my code I have:
try {
const parsed = await simpleParser(emailBuffer)
handleParsed(parsed)
} catch (error) {
handleError(error)
}
The handleError(error) is never called, I can only see the following error in the console (which comes from the mailparser library):
|
if (mail.headers.has(key)) { |
Anyone has got any ideas what to do? Thanks!