chirag04 / mail-listener2

Mail listener library for node.js. Get notification when new email arrived.
MIT License
245 stars 116 forks source link

Done event #40

Open ravenlp opened 9 years ago

ravenlp commented 9 years ago

Added a "done" event, triggered after the last message is parsed to signal the end of the current mail batch. It might be useful when you don't want the script to keep running and disconnect the client after the work is done:

  mailListener.on("done", function(){
    mailListener.stop();
  });
reecefenwick commented 9 years ago

+100000

reecefenwick commented 9 years ago

Any update on this PR?

ImTheDeveloper commented 7 years ago

Any examples of doing a complete disconnect after running this event? Also if mail-listener2 is not taking pull requests I suggest going to mail-listener-fixed as I've been pulling together changes there.