Updated to make current functionality work with node-imap v0.8.0.
Updated to work with node-imap v0.8.0
Increased imap dependencie version
Fixed bug with markSeen not correctly updating messages.
@jakestubbz you might want to publish your fork as a new module and maintain it urself. I would love to contribute. I dont think mail-listener is maintained anymore.
Also, adding test-cases would be great.
I would have no problem maintaining this as a separate module but the code is pretty much @podviaznikov. It wouldn't make sense to run this as another module if mail-listener is still going to be maintained as it would be identical.
Let's give it a couple of days and see what happens with this pull request.
@jakestubbz I started maintaining my fork here. https://npmjs.org/package/mail-listener2