Skip to content

does not reemit error events #42

forste opened this Issue Aug 6, 2012 · 1 comment

2 participants

forste commented Aug 6, 2012

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 commented Aug 6, 2012

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

var imapstream = new ImapStream();

imapstream.on("error", function(err){
    console.log("The stream failed for " + err);
@andris9 andris9 closed this Aug 6, 2012
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.