mscdex/node-imap — pull request #259 by Wismgari (2013-07-09 15:26:06+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.