email plugin: Refactor the accept() loop.