Skip to content

Commit

Permalink
Fix for mail event emiting
Browse files Browse the repository at this point in the history
If mailParserOptions.streamAttachments is false, parser will not emit the mail event.
  • Loading branch information
jabis committed Jul 23, 2014
1 parent adb108c commit 42a3858
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ function parseUnread() {
self.emit('mail', mail, seqno, attributes);
callback()
});
} else {
self.emit('mail',mail,seqno,attributes);
}
});
parser.on("attachment", function (attachment) {
Expand Down

0 comments on commit 42a3858

Please sign in to comment.