We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a fantastic package ... but I can't get downloads. I tried adding attachmentOptions: { stream: "true"} Also tried adding
attachmentOptions: { stream: "true"}
mailListener.on('data', data => { console.log(data) if (data.type === 'attachment') { console.log(data.filename); data.content.pipe(process.stdout); data.content.on('end', () => data.release()); } });
(based on Mail Parser docs)
mailListener.on("attachment", function(attachment){ console.log(attachment.path); });
doesn't return anything... there is no attachment.path ... but there is attachment.stream:
attachment.path
attachment.stream
{ contentType: 'image/png', contentDisposition: 'attachment', transferEncoding: 'base64', generatedFileName: 'attachment.png', contentId: '4b07159b34f1287079d4bdf7e77bc295@mailparser', stream: Base64Stream { _events: [Object: null prototype] {}, _eventsCount: 0, _maxListeners: undefined, writable: true, checksum: Hash { _options: undefined, [Symbol(kHandle)]: Hash {}, [Symbol(kState)]: [Object] }, length: 5245, current: '', [Symbol(kCapture)]: false }, checksum: '8d8c71ac84d23f92e171922eb89e1271', length: 5245 }
What am I missing?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a fantastic package ... but I can't get downloads.
I tried adding
attachmentOptions: { stream: "true"}
Also tried adding
(based on Mail Parser docs)
doesn't return anything... there is no
attachment.path
... but there isattachment.stream
:What am I missing?
The text was updated successfully, but these errors were encountered: