Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

does not reemit error events #42

Closed
forste opened this Issue · 1 comment

2 participants

@forste

I'm piping an imap library to the mailparser. I listen to 'end' and 'error' events of the mailparser. however, when an error occurs in the imap stream the application crashes since the error event is not imlemented in streams. is this on purpose/should I be listeninng to the imap stream as well for error events?

@andris9
Owner

You should be listening to the imap stream error event, mailparser does not emit any errors by itself.

var imapstream = new ImapStream();
imapstream.pipe(mailparser);

imapstream.on("error", function(err){
    console.log("The stream failed for " + err);
});
@andris9 andris9 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.