Open kharalampidi opened 8 years ago
https://github.com/andris9/mailparser#attachment-streaming
mp.on("attachment", function(attachment, mail){ var output = fs.createWriteStream(attachment.generatedFileName); attachment.stream.pipe(output); });
https://github.com/chirag04/mail-listener2/blob/master/index.js#L115 :smiley:
Now:
parser.on("attachment", function (attachment) { self.emit('attachment', attachment); });
Need:
parser.on("attachment", function (attachment,mail) { self.emit('attachment', attachment, mail); });
https://github.com/andris9/mailparser#attachment-streaming
https://github.com/chirag04/mail-listener2/blob/master/index.js#L115 :smiley:
Now:
Need: