split-formdesk-webform-mail-pmb
v0.0.8
Published
Split email from a FormDesk web form into separate files.
Readme
split-formdesk-webform-mail-pmb
Split email from a FormDesk web form into separate files.
API
This module exports one function:
splitMail(rawMail[, opt])
Read one single raw email from buffer or string rawMail and
save its parts to files. Returns a promise for completion.
opts is an optional options object that supports these keys:
destPrefix: Path prefix to in front of output filenames. Default: empty string.defuseFileName: A function that sanitizes the filenames, or false (default) for a rather strict built-in filter.
Known issues
- Needs more/better tests and docs.
License
ISC
