We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb3fe2 commit 67f8da0Copy full SHA for 67f8da0
index.js
@@ -91,7 +91,7 @@ function parseUnread() {
91
var attributes = null;
92
93
parser.on("end", function(mail) {
94
- if (!self.mailParserOptions.streamAttachments) {
+ if (!self.mailParserOptions.streamAttachments && mail.attachments) {
95
async.each(mail.attachments, function( attachment, callback) {
96
fs.writeFile(self.attachmentOptions.directory + attachment.generatedFileName, attachment.content, function(err) {
97
if(err) {
0 commit comments