mscdex/node-imap — pull request #258 by Wismgari (2013-07-09 12:17:51+00:00)
Title: Add support for SUBSCRIBE, UNSUBSCRIBE and LSUB

IMAP can subscribe to / unsubscribe from folders. Servers such as
Dovecot do not automatically subscribe to newly created mailboxes, you
must subscribe to them after creation.

subscribeBox - Subscribes to the specified box.
unsubcribeBox - Unsubscribes from the specified box.
getSubscribedBoxes - Issues a LSUB command to the server. Whilst LIST
returns all folders, LSUB only returns the folders the user has
subscribed to.