Parsing email

I've tried to use a couple of popular email parsing libraries (textract, mailparser) to parse the raw text received by an email worker, but so far I haven't found anything compatible with the CF runtime environment. For example, I get errors like below during deploy. Missing pacakges incude node:buffer, node:stream, crypto, path, etc.
▲ [WARNING] The package "node:buffer" wasn't found on the file system but is built into node.
▲ [WARNING] The package "node:buffer" wasn't found on the file system but is built into node.
2 Replies
richburdon
richburdonOP7mo ago
found this: @protontech/jsmimeparser
Cyb3r-Jak3
Cyb3r-Jak37mo ago
Also checkout the postal-mime package
Want results from more Discord servers?
Add your server