mscdex / node-imap

An IMAP client module for node.js.
MIT License
2.17k stars 382 forks source link

Server does not support that threading algorithm #781

Closed tecnodev closed 5 years ago

tecnodev commented 5 years ago

I have tried to test server capability imap.serverSupports('THREAD=ORDEREDSUBJECT') but it returns undefined

if the server does not support threading means, how can I handle this, suggest me any possible solutions

mscdex commented 5 years ago

serverSupports() should only be used once the 'ready' event has been fired and the connection is still valid.

If the server doesn't support threading natively, then you will have to develop your own algorithm on email message metadata to determine the threading appropriately. The descriptions of the algorithms used by the IMAP threading extensions can be viewed in the relevant RFC.