mscdex / node-imap

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

Purpose of subscribebox #883

Closed anshul-kai closed 2 years ago

anshul-kai commented 2 years ago

What is the purpose of subscribebox if one can't really get events for mail on more than one box. In other words, openBox opens one box which you can add hooks to. Why use subscribebox?

mscdex commented 2 years ago

subscribeBox()/unsubscribeBox() are there for completeness and represent a part of IMAP that is more of a historical peculiarity. It has nothing to do with synchronization, notifications, or events. Originally the people who developed the IMAP specification envisioned users having usenet/newsgroup-like subscriptions. I've never seen this used/implemented anywhere, so you can basically ignore it.