mail-listener2
mail-listener2 copied to clipboard
Done event
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();
});
+100000
Any update on this PR?
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.