chirag04/mail-listener2

Attachment not being downloaded

Closed this issue · 1 comments

I have set "attachments" to true and specified the directory folder "attachments/" for attachmentOptions but the file is not being downloaded. Do I have to manually create a stream and consume or what is the proper way of downloading the file?

I have also attempted:

var output = fs.createWriteStream(attachment.generatedFileName); attachment.stream.pipe(output);

Inside the attachment event without avail.