mscdex / node-imap

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

Get all conversations between two mail #777

Closed johnDivek closed 5 years ago

johnDivek commented 5 years ago

example:

mscdex commented 5 years ago

If the server supports the THREAD=REFERENCES capability, you can use imap.thread() as described in the readme. If the server is gmail (supports the X-GM-EXT-1 capability), then you will automatically get thread IDs when fetching messages and you can search by thread id (this is also described in the readme).

venky0195 commented 5 years ago

Can you please post an example of how to use imap.thread()?