Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Done event #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Done event #40

wants to merge 3 commits into from

Conversation

ravenlp
Copy link

@ravenlp ravenlp commented Apr 22, 2015

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
Copy link

+100000

@reecefenwick
Copy link

Any update on this PR?

@ImTheDeveloper
Copy link

ImTheDeveloper commented Apr 18, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants