mscdex / node-imap

An IMAP client module for node.js.
MIT License
2.15k stars 380 forks source link

RFC 5465 - NOTIFY #399

Open llange opened 10 years ago

llange commented 10 years ago

How hard would it be to implement http://tools.ietf.org/html/rfc5465 ? Do you have any guidelines on how to add it ?

mscdex commented 10 years ago

It's used automatically if the server supports it, instead of NOOP polling.

llange commented 10 years ago

Hello,

I was referring to https://github.com/mscdex/node-imap#todo which states that this extension was not supported (yet). Maybe you should update it if it is implemented indeed.

However, I'm could not find in Connection.js any reference to "NOTIFY" nor "NOTIFY SET", so I really feel it is not implemented at least in master where I searched.

I'm talking about NOTIFY, not IDLE.

mscdex commented 10 years ago

Ah ok, I misread it. It's not implemented yet.

Pull requests are welcome, just make sure the function you add checks that the server supports the capability like some of the other special capabilities noted at the end of the readme.