Attachments

Attachments can be streamed or buffered. This feature is based on how mailparser handles attachments.
Setting attachments: true will download attachments as buffer objects by default to the project directory.
A specific download directory may be specified by setting attachmentOptions: { directory: "attachments/"}.
Attachments may also be streamed using attachmentOptions: { stream: "true"}. The "attachment" event will be fired every time an attachment is encountered.
Refer to the mailparser docs for specifics on how to stream attachments.