mail-listener2 icon indicating copy to clipboard operation
mail-listener2 copied to clipboard

Done event

Open ravenlp opened this issue 9 years ago • 3 comments

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();
  });

ravenlp avatar Apr 22 '15 02:04 ravenlp

+100000

reecefenwick avatar May 09 '15 05:05 reecefenwick

Any update on this PR?

reecefenwick avatar Jul 21 '15 08:07 reecefenwick

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.

ImTheDeveloper avatar Apr 18 '17 08:04 ImTheDeveloper