split-formdesk-webform-mail-pmb

0.0.8 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i split-formdesk-webform-mail-pmb

Weekly Downloads

5

Version

0.0.8

License

ISC

Unpacked Size

9.74 kB

Total Files

11

Last publish

Collaborators

  • mk-pmb